| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| OperatorContentType |
|
| 2.0;2 |
| 1 | ||
| 2 | package org.kuali.student.security.policy.dto; | |
| 3 | ||
| 4 | import java.util.ArrayList; | |
| 5 | import java.util.List; | |
| 6 | import javax.xml.bind.JAXBElement; | |
| 7 | import javax.xml.bind.annotation.XmlAccessType; | |
| 8 | import javax.xml.bind.annotation.XmlAccessorType; | |
| 9 | import javax.xml.bind.annotation.XmlAnyElement; | |
| 10 | import javax.xml.bind.annotation.XmlElementRef; | |
| 11 | import javax.xml.bind.annotation.XmlElementRefs; | |
| 12 | import javax.xml.bind.annotation.XmlSeeAlso; | |
| 13 | import javax.xml.bind.annotation.XmlType; | |
| 14 | import org.w3c.dom.Element; | |
| 15 | ||
| 16 | ||
| 17 | /** | |
| 18 | * <p>Java class for OperatorContentType complex type. | |
| 19 | * | |
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. | |
| 21 | * | |
| 22 | * <pre> | |
| 23 | * <complexType name="OperatorContentType"> | |
| 24 | * <complexContent> | |
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 26 | * <sequence> | |
| 27 | * <choice maxOccurs="unbounded" minOccurs="0"> | |
| 28 | * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy"/> | |
| 29 | * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}All"/> | |
| 30 | * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}ExactlyOne"/> | |
| 31 | * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}PolicyReference"/> | |
| 32 | * <any processContents='lax' namespace='##other'/> | |
| 33 | * </choice> | |
| 34 | * </sequence> | |
| 35 | * </restriction> | |
| 36 | * </complexContent> | |
| 37 | * </complexType> | |
| 38 | * </pre> | |
| 39 | * | |
| 40 | * | |
| 41 | */ | |
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 43 | @XmlType(name = "OperatorContentType", propOrder = { | |
| 44 | "policyOrAllOrExactlyOne" | |
| 45 | }) | |
| 46 | @XmlSeeAlso({ | |
| 47 | Policy.class | |
| 48 | }) | |
| 49 | 0 | public class OperatorContentType { |
| 50 | ||
| 51 | @XmlElementRefs({ | |
| 52 | @XmlElementRef(name = "PolicyReference", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = PolicyReference.class), | |
| 53 | @XmlElementRef(name = "All", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = JAXBElement.class), | |
| 54 | @XmlElementRef(name = "Policy", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = Policy.class), | |
| 55 | @XmlElementRef(name = "ExactlyOne", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = JAXBElement.class) | |
| 56 | }) | |
| 57 | @XmlAnyElement(lax = true) | |
| 58 | protected List<Object> policyOrAllOrExactlyOne; | |
| 59 | ||
| 60 | /** | |
| 61 | * Gets the value of the policyOrAllOrExactlyOne property. | |
| 62 | * | |
| 63 | * <p> | |
| 64 | * This accessor method returns a reference to the live list, | |
| 65 | * not a snapshot. Therefore any modification you make to the | |
| 66 | * returned list will be present inside the JAXB object. | |
| 67 | * This is why there is not a <CODE>set</CODE> method for the policyOrAllOrExactlyOne property. | |
| 68 | * | |
| 69 | * <p> | |
| 70 | * For example, to add a new item, do as follows: | |
| 71 | * <pre> | |
| 72 | * getPolicyOrAllOrExactlyOne().add(newItem); | |
| 73 | * </pre> | |
| 74 | * | |
| 75 | * | |
| 76 | * <p> | |
| 77 | * Objects of the following type(s) are allowed in the list | |
| 78 | * {@link Object } | |
| 79 | * {@link PolicyReference } | |
| 80 | * {@link JAXBElement }{@code <}{@link OperatorContentType }{@code >} | |
| 81 | * {@link Element } | |
| 82 | * {@link JAXBElement }{@code <}{@link OperatorContentType }{@code >} | |
| 83 | * {@link Policy } | |
| 84 | * | |
| 85 | * | |
| 86 | */ | |
| 87 | public List<Object> getPolicyOrAllOrExactlyOne() { | |
| 88 | 0 | if (policyOrAllOrExactlyOne == null) { |
| 89 | 0 | policyOrAllOrExactlyOne = new ArrayList<Object>(); |
| 90 | } | |
| 91 | 0 | return this.policyOrAllOrExactlyOne; |
| 92 | } | |
| 93 | ||
| 94 | } |