| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| TransformType |
|
| 1.3333333333333333;1.333 |
| 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.XmlAttribute; | |
| 11 | import javax.xml.bind.annotation.XmlElementRef; | |
| 12 | import javax.xml.bind.annotation.XmlMixed; | |
| 13 | import javax.xml.bind.annotation.XmlSchemaType; | |
| 14 | import javax.xml.bind.annotation.XmlType; | |
| 15 | import org.w3c.dom.Element; | |
| 16 | ||
| 17 | ||
| 18 | /** | |
| 19 | * <p>Java class for TransformType complex type. | |
| 20 | * | |
| 21 | * <p>The following schema fragment specifies the expected content contained within this class. | |
| 22 | * | |
| 23 | * <pre> | |
| 24 | * <complexType name="TransformType"> | |
| 25 | * <complexContent> | |
| 26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 27 | * <choice maxOccurs="unbounded" minOccurs="0"> | |
| 28 | * <any processContents='lax' namespace='##other'/> | |
| 29 | * <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/> | |
| 30 | * </choice> | |
| 31 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
| 32 | * </restriction> | |
| 33 | * </complexContent> | |
| 34 | * </complexType> | |
| 35 | * </pre> | |
| 36 | * | |
| 37 | * | |
| 38 | */ | |
| 39 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 40 | @XmlType(name = "TransformType", propOrder = { | |
| 41 | "content" | |
| 42 | }) | |
| 43 | 0 | public class TransformType { |
| 44 | ||
| 45 | @XmlElementRef(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) | |
| 46 | @XmlMixed | |
| 47 | @XmlAnyElement(lax = true) | |
| 48 | protected List<Object> content; | |
| 49 | @XmlAttribute(name = "Algorithm", required = true) | |
| 50 | @XmlSchemaType(name = "anyURI") | |
| 51 | protected String algorithm; | |
| 52 | ||
| 53 | /** | |
| 54 | * Gets the value of the content property. | |
| 55 | * | |
| 56 | * <p> | |
| 57 | * This accessor method returns a reference to the live list, | |
| 58 | * not a snapshot. Therefore any modification you make to the | |
| 59 | * returned list will be present inside the JAXB object. | |
| 60 | * This is why there is not a <CODE>set</CODE> method for the content property. | |
| 61 | * | |
| 62 | * <p> | |
| 63 | * For example, to add a new item, do as follows: | |
| 64 | * <pre> | |
| 65 | * getContent().add(newItem); | |
| 66 | * </pre> | |
| 67 | * | |
| 68 | * | |
| 69 | * <p> | |
| 70 | * Objects of the following type(s) are allowed in the list | |
| 71 | * {@link Object } | |
| 72 | * {@link Element } | |
| 73 | * {@link String } | |
| 74 | * {@link JAXBElement }{@code <}{@link String }{@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 | /** | |
| 86 | * Gets the value of the algorithm property. | |
| 87 | * | |
| 88 | * @return | |
| 89 | * possible object is | |
| 90 | * {@link String } | |
| 91 | * | |
| 92 | */ | |
| 93 | public String getAlgorithm() { | |
| 94 | 0 | return algorithm; |
| 95 | } | |
| 96 | ||
| 97 | /** | |
| 98 | * Sets the value of the algorithm property. | |
| 99 | * | |
| 100 | * @param value | |
| 101 | * allowed object is | |
| 102 | * {@link String } | |
| 103 | * | |
| 104 | */ | |
| 105 | public void setAlgorithm(String value) { | |
| 106 | 0 | this.algorithm = value; |
| 107 | 0 | } |
| 108 | ||
| 109 | } |