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

uk.gov.legislation.namespaces.metadata.ProvisionsStructure Maven / Gradle / Ivy

The 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.metadata;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;


/**
 * 

Java class for ProvisionsStructure complex type. * *

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

 * <complexType name="ProvisionsStructure">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Section"/>
 *         <element ref="{http://www.legislation.gov.uk/namespaces/metadata}SectionRange"/>
 *         <element name="Citation">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *                 <attribute name="Class" type="{http://www.legislation.gov.uk/namespaces/metadata}DocumentMainTypeType" />
 *                 <attribute name="Year" type="{http://www.w3.org/2001/XMLSchema}gYear" />
 *                 <attribute name="Number" type="{http://www.w3.org/2001/XMLSchema}integer" />
 *                 <attribute name="Title" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </choice>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ProvisionsStructure", propOrder = { "content" }) public class ProvisionsStructure { @XmlElementRefs({ @XmlElementRef(name = "SectionRange", namespace = "http://www.legislation.gov.uk/namespaces/metadata", type = SectionRange.class, required = false), @XmlElementRef(name = "Section", namespace = "http://www.legislation.gov.uk/namespaces/metadata", type = Section.class, required = false), @XmlElementRef(name = "Citation", namespace = "http://www.legislation.gov.uk/namespaces/metadata", type = JAXBElement.class, required = false) }) @XmlMixed protected List content; /** * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * {@link SectionRange } * {@link Section } * {@link JAXBElement }{@code <}{@link ProvisionsStructure.Citation }{@code >} * * */ public List getContent() { if (content == null) { content = new ArrayList<>(); } return this.content; } /** *

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">
     *       <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
     *       <attribute name="Class" type="{http://www.legislation.gov.uk/namespaces/metadata}DocumentMainTypeType" />
     *       <attribute name="Year" type="{http://www.w3.org/2001/XMLSchema}gYear" />
     *       <attribute name="Number" type="{http://www.w3.org/2001/XMLSchema}integer" />
     *       <attribute name="Title" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) public static class Citation { @XmlValue protected String content; @XmlAttribute(name = "URI", required = true) @XmlSchemaType(name = "anyURI") protected String uri; @XmlAttribute(name = "Class") protected DocumentMainTypeType clazz; @XmlAttribute(name = "Year") @XmlSchemaType(name = "gYear") protected XMLGregorianCalendar year; @XmlAttribute(name = "Number") protected BigInteger number; @XmlAttribute(name = "Title") protected String title; /** * Gets the value of the content property. * * @return * possible object is * {@link String } * */ public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(String value) { this.content = value; } /** * Gets the value of the uri property. * * @return * possible object is * {@link String } * */ public String getURI() { return uri; } /** * Sets the value of the uri property. * * @param value * allowed object is * {@link String } * */ public void setURI(String value) { this.uri = value; } /** * Gets the value of the clazz property. * * @return * possible object is * {@link DocumentMainTypeType } * */ public DocumentMainTypeType getClazz() { return clazz; } /** * Sets the value of the clazz property. * * @param value * allowed object is * {@link DocumentMainTypeType } * */ public void setClazz(DocumentMainTypeType value) { this.clazz = value; } /** * Gets the value of the year property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getYear() { return year; } /** * Sets the value of the year property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setYear(XMLGregorianCalendar value) { this.year = value; } /** * Gets the value of the number property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumber() { return number; } /** * Sets the value of the number property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumber(BigInteger value) { this.number = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } } }