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

uk.gov.legislation.namespaces.metadata.Commentary 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 uk.gov.legislation.namespaces.legislation.CommentaryType;
import uk.gov.legislation.namespaces.legislation.Para;

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">
 *       <group ref="{http://www.legislation.gov.uk/namespaces/legislation}ParaRestricted" maxOccurs="unbounded"/>
 *       <attribute name="Ref" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
 *             <pattern value="c[0-9]{5,7}"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="Type" use="required" type="{http://www.legislation.gov.uk/namespaces/legislation}CommentaryType" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "paras" }) @XmlRootElement(name = "Commentary") public class Commentary { @XmlElement(name = "Para", namespace = "http://www.legislation.gov.uk/namespaces/legislation") protected List paras; @XmlAttribute(name = "Ref", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String ref; @XmlAttribute(name = "Type", required = true) protected CommentaryType type; /** * Gets the value of the paras 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 paras property. * *

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

     *    getParas().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Para } * * */ public List getParas() { if (paras == null) { paras = new ArrayList<>(); } return this.paras; } /** * Gets the value of the ref property. * * @return * possible object is * {@link String } * */ public String getRef() { return ref; } /** * Sets the value of the ref property. * * @param value * allowed object is * {@link String } * */ public void setRef(String value) { this.ref = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link CommentaryType } * */ public CommentaryType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link CommentaryType } * */ public void setType(CommentaryType value) { this.type = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy