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

uk.gov.legislation.namespaces.legislation.Chapter 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 javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigInteger;
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>
 *         <group ref="{http://www.tso.co.uk/assets/namespace/error}Errors" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice>
 *           <sequence>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Number"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Title" maxOccurs="unbounded" minOccurs="0"/>
 *           </sequence>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Title" maxOccurs="unbounded"/>
 *         </choice>
 *         <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Reference" minOccurs="0"/>
 *         <choice maxOccurs="unbounded">
 *           <choice maxOccurs="unbounded">
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}P" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}P1" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}P1group" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}P2" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}P2group" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Pblock" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}PsubBlock" maxOccurs="unbounded"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/legislation}BlockAmendment" maxOccurs="unbounded"/>
 *           </choice>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Tabular"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Figure"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Form"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}IncludedDocument"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Include"/>
 *           <group ref="{http://www.tso.co.uk/assets/namespace/error}Errors"/>
 *         </choice>
 *       </sequence>
 *       <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}FragmentAttributes"/>
 *       <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}CommonSubAttributes"/>
 *       <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}PelementIDattributes"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "errorsAndWarningsAndNumbers" }) @XmlRootElement(name = "Chapter") public class Chapter { @XmlElementRefs({ @XmlElementRef(name = "P", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = P.class, required = false), @XmlElementRef(name = "PsubBlock", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = PsubBlock.class, required = false), @XmlElementRef(name = "P1", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = P1 .class, required = false), @XmlElementRef(name = "Tabular", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = Tabular.class, required = false), @XmlElementRef(name = "Include", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = Include.class, required = false), @XmlElementRef(name = "Figure", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = Figure.class, required = false), @XmlElementRef(name = "Error", namespace = "http://www.tso.co.uk/assets/namespace/error", type = JAXBElement.class, required = false), @XmlElementRef(name = "IncludedDocument", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = IncludedDocument.class, required = false), @XmlElementRef(name = "Number", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = JAXBElement.class, required = false), @XmlElementRef(name = "Form", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = Form.class, required = false), @XmlElementRef(name = "Title", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = JAXBElement.class, required = false), @XmlElementRef(name = "BlockAmendment", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = BlockAmendment.class, required = false), @XmlElementRef(name = "Reference", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = JAXBElement.class, required = false), @XmlElementRef(name = "Pblock", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = Pblock.class, required = false), @XmlElementRef(name = "P2", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = P2 .class, required = false), @XmlElementRef(name = "P2group", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = P2Group.class, required = false), @XmlElementRef(name = "Warning", namespace = "http://www.tso.co.uk/assets/namespace/error", type = JAXBElement.class, required = false), @XmlElementRef(name = "P1group", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = P1Group.class, required = false) }) protected List errorsAndWarningsAndNumbers; @XmlAttribute(name = "FragmentId") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String fragmentId; @XmlAttribute(name = "Version") protected BigInteger version; @XmlAttribute(name = "RestrictExtent") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String restrictExtent; @XmlAttribute(name = "RestrictStartDate") @XmlSchemaType(name = "date") protected XMLGregorianCalendar restrictStartDate; @XmlAttribute(name = "RestrictEndDate") @XmlSchemaType(name = "date") protected XMLGregorianCalendar restrictEndDate; @XmlAttribute(name = "Status") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String status; @XmlAttribute(name = "ConfersPower") protected Boolean confersPower; @XmlAttribute(name = "BlanketAmendment") protected Boolean blanketAmendment; @XmlAttribute(name = "Concurrent") protected Boolean concurrent; @XmlAttribute(name = "Match") protected Boolean match; @XmlAttribute(name = "AltDates") @XmlSchemaType(name = "anySimpleType") protected String altDates; @XmlAttribute(name = "NumberOfProvisions") protected BigInteger numberOfProvisions; @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; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String id; @XmlAttribute(name = "shortId") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String shortId; @XmlAttribute(name = "DocumentURI") @XmlSchemaType(name = "anyURI") protected String documentURI; @XmlAttribute(name = "IdURI") @XmlSchemaType(name = "anyURI") protected String idURI; @XmlAttribute(name = "NotesURI") @XmlSchemaType(name = "anyURI") protected String notesURI; /** * Gets the value of the errorsAndWarningsAndNumbers 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 errorsAndWarningsAndNumbers property. * *

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

     *    getErrorsAndWarningsAndNumbers().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link P } * {@link PsubBlock } * {@link P1 } * {@link Tabular } * {@link Figure } * {@link Include } * {@link JAXBElement }{@code <}{@link ErrorType }{@code >} * {@link IncludedDocument } * {@link JAXBElement }{@code <}{@link InlineFullStructure }{@code >} * {@link Form } * {@link JAXBElement }{@code <}{@link InlineFullStructure }{@code >} * {@link Pblock } * {@link JAXBElement }{@code <}{@link InlineFullStructure }{@code >} * {@link BlockAmendment } * {@link P2 } * {@link P2Group } * {@link JAXBElement }{@code <}{@link ErrorType }{@code >} * {@link P1Group } * * */ public List getErrorsAndWarningsAndNumbers() { if (errorsAndWarningsAndNumbers == null) { errorsAndWarningsAndNumbers = new ArrayList<>(); } return this.errorsAndWarningsAndNumbers; } /** * Gets the value of the fragmentId property. * * @return * possible object is * {@link String } * */ public String getFragmentId() { return fragmentId; } /** * Sets the value of the fragmentId property. * * @param value * allowed object is * {@link String } * */ public void setFragmentId(String value) { this.fragmentId = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link BigInteger } * */ public void setVersion(BigInteger value) { this.version = value; } /** * Gets the value of the restrictExtent property. * * @return * possible object is * {@link String } * */ public String getRestrictExtent() { return restrictExtent; } /** * Sets the value of the restrictExtent property. * * @param value * allowed object is * {@link String } * */ public void setRestrictExtent(String value) { this.restrictExtent = value; } /** * Gets the value of the restrictStartDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getRestrictStartDate() { return restrictStartDate; } /** * Sets the value of the restrictStartDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setRestrictStartDate(XMLGregorianCalendar value) { this.restrictStartDate = value; } /** * Gets the value of the restrictEndDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getRestrictEndDate() { return restrictEndDate; } /** * Sets the value of the restrictEndDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setRestrictEndDate(XMLGregorianCalendar value) { this.restrictEndDate = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link String } * */ public String getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link String } * */ public void setStatus(String value) { this.status = value; } /** * Gets the value of the confersPower property. * * @return * possible object is * {@link Boolean } * */ public boolean isConfersPower() { if (confersPower == null) { return false; } else { return confersPower; } } /** * Sets the value of the confersPower property. * * @param value * allowed object is * {@link Boolean } * */ public void setConfersPower(Boolean value) { this.confersPower = value; } /** * Gets the value of the blanketAmendment property. * * @return * possible object is * {@link Boolean } * */ public boolean isBlanketAmendment() { if (blanketAmendment == null) { return false; } else { return blanketAmendment; } } /** * Sets the value of the blanketAmendment property. * * @param value * allowed object is * {@link Boolean } * */ public void setBlanketAmendment(Boolean value) { this.blanketAmendment = value; } /** * Gets the value of the concurrent property. * * @return * possible object is * {@link Boolean } * */ public boolean isConcurrent() { if (concurrent == null) { return false; } else { return concurrent; } } /** * Sets the value of the concurrent property. * * @param value * allowed object is * {@link Boolean } * */ public void setConcurrent(Boolean value) { this.concurrent = value; } /** * Gets the value of the match property. * * @return * possible object is * {@link Boolean } * */ public boolean isMatch() { if (match == null) { return true; } else { return match; } } /** * Sets the value of the match property. * * @param value * allowed object is * {@link Boolean } * */ public void setMatch(Boolean value) { this.match = value; } /** * Gets the value of the altDates property. * * @return * possible object is * {@link String } * */ public String getAltDates() { return altDates; } /** * Sets the value of the altDates property. * * @param value * allowed object is * {@link String } * */ public void setAltDates(String value) { this.altDates = value; } /** * Gets the value of the numberOfProvisions property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumberOfProvisions() { return numberOfProvisions; } /** * Sets the value of the numberOfProvisions property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumberOfProvisions(BigInteger value) { this.numberOfProvisions = 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; } /** * 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 shortId property. * * @return * possible object is * {@link String } * */ public String getShortId() { return shortId; } /** * Sets the value of the shortId property. * * @param value * allowed object is * {@link String } * */ public void setShortId(String value) { this.shortId = value; } /** * Gets the value of the documentURI property. * * @return * possible object is * {@link String } * */ public String getDocumentURI() { return documentURI; } /** * Sets the value of the documentURI property. * * @param value * allowed object is * {@link String } * */ public void setDocumentURI(String value) { this.documentURI = value; } /** * Gets the value of the idURI property. * * @return * possible object is * {@link String } * */ public String getIdURI() { return idURI; } /** * Sets the value of the idURI property. * * @param value * allowed object is * {@link String } * */ public void setIdURI(String value) { this.idURI = value; } /** * Gets the value of the notesURI property. * * @return * possible object is * {@link String } * */ public String getNotesURI() { return notesURI; } /** * Sets the value of the notesURI property. * * @param value * allowed object is * {@link String } * */ public void setNotesURI(String value) { this.notesURI = value; } }