| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| RequestSecurityTokenResponseType | 
 | 
 | 1.25;1.25 | 
| 1 | ||
| 2 |  package org.kuali.student.security.trust.dto; | |
| 3 | ||
| 4 |  import java.util.ArrayList; | |
| 5 |  import java.util.HashMap; | |
| 6 |  import java.util.List; | |
| 7 |  import java.util.Map; | |
| 8 |  import javax.xml.bind.annotation.XmlAccessType; | |
| 9 |  import javax.xml.bind.annotation.XmlAccessorType; | |
| 10 |  import javax.xml.bind.annotation.XmlAnyAttribute; | |
| 11 |  import javax.xml.bind.annotation.XmlAnyElement; | |
| 12 |  import javax.xml.bind.annotation.XmlAttribute; | |
| 13 |  import javax.xml.bind.annotation.XmlSchemaType; | |
| 14 |  import javax.xml.bind.annotation.XmlType; | |
| 15 |  import javax.xml.namespace.QName; | |
| 16 |  import org.w3c.dom.Element; | |
| 17 | ||
| 18 | ||
| 19 |  /** | |
| 20 |   *  | |
| 21 |   *                 Actual content model is non-deterministic, hence wildcard. The following shows intended content model: | |
| 22 |   *  | |
| 23 |   *                  | |
| 24 |   *                  | |
| 25 |   *                  | |
| 26 |   *                   | |
| 27 |   *                  | |
| 28 |   *                  | |
| 29 |   *                  | |
| 30 |   *                  | |
| 31 |   *                  | |
| 32 |   *                  | |
| 33 |   *                  | |
| 34 |   *                  | |
| 35 |   *                  | |
| 36 |   *                  | |
| 37 |   *                  | |
| 38 |   *                  | |
| 39 |   *                  | |
| 40 |   *                  | |
| 41 |   *                  | |
| 42 |   *                  | |
| 43 |   *                  | |
| 44 |   *                  | |
| 45 |   *                  | |
| 46 |   *                  | |
| 47 |   *                  | |
| 48 |   *                  | |
| 49 |   *                  | |
| 50 |   *                  | |
| 51 |   *                  | |
| 52 |   *                  | |
| 53 |   *                  | |
| 54 |   *                  | |
| 55 |   *  | |
| 56 |   *            | |
| 57 |   *  | |
| 58 |   * <p>Java class for RequestSecurityTokenResponseType complex type. | |
| 59 |   *  | |
| 60 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 61 |   *  | |
| 62 |   * <pre> | |
| 63 |   * <complexType name="RequestSecurityTokenResponseType"> | |
| 64 |   *   <complexContent> | |
| 65 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 66 |   *       <sequence> | |
| 67 |   *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/> | |
| 68 |   *       </sequence> | |
| 69 |   *       <attribute name="Context" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
| 70 |   *       <anyAttribute processContents='lax' namespace='##other'/> | |
| 71 |   *     </restriction> | |
| 72 |   *   </complexContent> | |
| 73 |   * </complexType> | |
| 74 |   * </pre> | |
| 75 |   *  | |
| 76 |   *  | |
| 77 |   */ | |
| 78 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 79 |  @XmlType(name = "RequestSecurityTokenResponseType", propOrder = { | |
| 80 |      "any" | |
| 81 | }) | |
| 82 | 1 | public class RequestSecurityTokenResponseType { | 
| 83 | ||
| 84 |      @XmlAnyElement(lax = true) | |
| 85 |      protected List<Object> any; | |
| 86 |      @XmlAttribute(name = "Context") | |
| 87 |      @XmlSchemaType(name = "anyURI") | |
| 88 |      protected String context; | |
| 89 | 1 | @XmlAnyAttribute | 
| 90 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
| 91 | ||
| 92 |      /** | |
| 93 |       * Gets the value of the any property. | |
| 94 |       *  | |
| 95 |       * <p> | |
| 96 |       * This accessor method returns a reference to the live list, | |
| 97 |       * not a snapshot. Therefore any modification you make to the | |
| 98 |       * returned list will be present inside the JAXB object. | |
| 99 |       * This is why there is not a <CODE>set</CODE> method for the any property. | |
| 100 |       *  | |
| 101 |       * <p> | |
| 102 |       * For example, to add a new item, do as follows: | |
| 103 |       * <pre> | |
| 104 |       *    getAny().add(newItem); | |
| 105 |       * </pre> | |
| 106 |       *  | |
| 107 |       *  | |
| 108 |       * <p> | |
| 109 |       * Objects of the following type(s) are allowed in the list | |
| 110 |       * {@link Object } | |
| 111 |       * {@link Element } | |
| 112 |       *  | |
| 113 |       *  | |
| 114 |       */ | |
| 115 |      public List<Object> getAny() { | |
| 116 | 3 | if (any == null) { | 
| 117 | 1 |              any = new ArrayList<Object>(); | 
| 118 | } | |
| 119 | 3 | return this.any; | 
| 120 | } | |
| 121 | ||
| 122 |      /** | |
| 123 |       * Gets the value of the context property. | |
| 124 |       *  | |
| 125 |       * @return | |
| 126 |       *     possible object is | |
| 127 |       *     {@link String } | |
| 128 |       *      | |
| 129 |       */ | |
| 130 |      public String getContext() { | |
| 131 | 1 |          return context; | 
| 132 | } | |
| 133 | ||
| 134 |      /** | |
| 135 |       * Sets the value of the context property. | |
| 136 |       *  | |
| 137 |       * @param value | |
| 138 |       *     allowed object is | |
| 139 |       *     {@link String } | |
| 140 |       *      | |
| 141 |       */ | |
| 142 | public void setContext(String value) { | |
| 143 | 1 |          this.context = value; | 
| 144 | 1 | } | 
| 145 | ||
| 146 |      /** | |
| 147 |       * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
| 148 |       *  | |
| 149 |       * <p> | |
| 150 |       * the map is keyed by the name of the attribute and  | |
| 151 |       * the value is the string value of the attribute. | |
| 152 |       *  | |
| 153 |       * the map returned by this method is live, and you can add new attribute | |
| 154 |       * by updating the map directly. Because of this design, there's no setter. | |
| 155 |       *  | |
| 156 |       *  | |
| 157 |       * @return | |
| 158 |       *     always non-null | |
| 159 |       */ | |
| 160 |      public Map<QName, String> getOtherAttributes() { | |
| 161 | 0 |          return otherAttributes; | 
| 162 | } | |
| 163 | ||
| 164 | } |