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