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

uk.gov.legislation.namespaces.metadata.SecondaryMetadata 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.metadata;

import javax.xml.bind.annotation.*;
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>
 *         <element ref="{http://www.legislation.gov.uk/namespaces/metadata}DocumentClassification"/>
 *         <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Year"/>
 *         <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Number" minOccurs="0"/>
 *         <choice maxOccurs="unbounded">
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}ISBN" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}AlternativeNumber" maxOccurs="unbounded" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}DepartmentCode" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Made" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Laid" maxOccurs="unbounded" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}ComingIntoForce" minOccurs="0"/>
 *           <choice>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Resolution" minOccurs="0"/>
 *             <element ref="{http://www.legislation.gov.uk/namespaces/metadata}RoyalPresence" minOccurs="0"/>
 *           </choice>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}UnappliedEffects" minOccurs="0"/>
 *           <element ref="{http://www.legislation.gov.uk/namespaces/metadata}Citations" minOccurs="0"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "documentClassification", "year", "number", "isbnsAndAlternativeNumbersAndDepartmentCodes" }) @XmlRootElement(name = "SecondaryMetadata") public class SecondaryMetadata { @XmlElement(name = "DocumentClassification", required = true) protected DocumentClassification documentClassification; @XmlElement(name = "Year", required = true) protected Year year; @XmlElement(name = "Number") protected Number number; @XmlElements({ @XmlElement(name = "ISBN", type = ISBN.class), @XmlElement(name = "AlternativeNumber", type = AlternativeNumber.class), @XmlElement(name = "DepartmentCode", type = DepartmentCode.class), @XmlElement(name = "Made", type = Made.class), @XmlElement(name = "Laid", type = Laid.class), @XmlElement(name = "ComingIntoForce", type = ComingIntoForce.class), @XmlElement(name = "Resolution", type = Resolution.class), @XmlElement(name = "RoyalPresence", type = RoyalPresence.class), @XmlElement(name = "UnappliedEffects", type = UnappliedEffects.class), @XmlElement(name = "Citations", type = Citations.class) }) protected List isbnsAndAlternativeNumbersAndDepartmentCodes; /** * Gets the value of the documentClassification property. * * @return * possible object is * {@link DocumentClassification } * */ public DocumentClassification getDocumentClassification() { return documentClassification; } /** * Sets the value of the documentClassification property. * * @param value * allowed object is * {@link DocumentClassification } * */ public void setDocumentClassification(DocumentClassification value) { this.documentClassification = value; } /** * Gets the value of the year property. * * @return * possible object is * {@link Year } * */ public Year getYear() { return year; } /** * Sets the value of the year property. * * @param value * allowed object is * {@link Year } * */ public void setYear(Year value) { this.year = value; } /** * Gets the value of the number property. * * @return * possible object is * {@link Number } * */ public Number getNumber() { return number; } /** * Sets the value of the number property. * * @param value * allowed object is * {@link Number } * */ public void setNumber(Number value) { this.number = value; } /** * Gets the value of the isbnsAndAlternativeNumbersAndDepartmentCodes 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 isbnsAndAlternativeNumbersAndDepartmentCodes property. * *

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

     *    getISBNSAndAlternativeNumbersAndDepartmentCodes().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ISBN } * {@link AlternativeNumber } * {@link DepartmentCode } * {@link Made } * {@link Laid } * {@link ComingIntoForce } * {@link Resolution } * {@link RoyalPresence } * {@link UnappliedEffects } * {@link Citations } * * */ public List getISBNSAndAlternativeNumbersAndDepartmentCodes() { if (isbnsAndAlternativeNumbersAndDepartmentCodes == null) { isbnsAndAlternativeNumbersAndDepartmentCodes = new ArrayList<>(); } return this.isbnsAndAlternativeNumbersAndDepartmentCodes; } }