| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| RequestSecurityTokenType | 
 | 
 | 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 |   * <p>Java class for RequestSecurityTokenType complex type. | |
| 54 |   *  | |
| 55 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 56 |   *  | |
| 57 |   * <pre> | |
| 58 |   * <complexType name="RequestSecurityTokenType"> | |
| 59 |   *   <complexContent> | |
| 60 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 61 |   *       <sequence> | |
| 62 |   *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/> | |
| 63 |   *       </sequence> | |
| 64 |   *       <attribute name="Context" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
| 65 |   *       <anyAttribute processContents='lax' namespace='##other'/> | |
| 66 |   *     </restriction> | |
| 67 |   *   </complexContent> | |
| 68 |   * </complexType> | |
| 69 |   * </pre> | |
| 70 |   *  | |
| 71 |   *  | |
| 72 |   */ | |
| 73 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 74 |  @XmlType(name = "RequestSecurityTokenType", propOrder = { | |
| 75 |      "any" | |
| 76 | }) | |
| 77 | 2 | public class RequestSecurityTokenType { | 
| 78 | ||
| 79 |      @XmlAnyElement(lax = true) | |
| 80 |      protected List<Object> any; | |
| 81 |      @XmlAttribute(name = "Context") | |
| 82 |      @XmlSchemaType(name = "anyURI") | |
| 83 |      protected String context; | |
| 84 | 2 | @XmlAnyAttribute | 
| 85 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
| 86 | ||
| 87 |      /** | |
| 88 |       * Gets the value of the any property. | |
| 89 |       *  | |
| 90 |       * <p> | |
| 91 |       * This accessor method returns a reference to the live list, | |
| 92 |       * not a snapshot. Therefore any modification you make to the | |
| 93 |       * returned list will be present inside the JAXB object. | |
| 94 |       * This is why there is not a <CODE>set</CODE> method for the any property. | |
| 95 |       *  | |
| 96 |       * <p> | |
| 97 |       * For example, to add a new item, do as follows: | |
| 98 |       * <pre> | |
| 99 |       *    getAny().add(newItem); | |
| 100 |       * </pre> | |
| 101 |       *  | |
| 102 |       *  | |
| 103 |       * <p> | |
| 104 |       * Objects of the following type(s) are allowed in the list | |
| 105 |       * {@link Object } | |
| 106 |       * {@link Element } | |
| 107 |       *  | |
| 108 |       *  | |
| 109 |       */ | |
| 110 |      public List<Object> getAny() { | |
| 111 | 9 | if (any == null) { | 
| 112 | 2 |              any = new ArrayList<Object>(); | 
| 113 | } | |
| 114 | 9 | return this.any; | 
| 115 | } | |
| 116 | ||
| 117 |      /** | |
| 118 |       * Gets the value of the context property. | |
| 119 |       *  | |
| 120 |       * @return | |
| 121 |       *     possible object is | |
| 122 |       *     {@link String } | |
| 123 |       *      | |
| 124 |       */ | |
| 125 |      public String getContext() { | |
| 126 | 1 |          return context; | 
| 127 | } | |
| 128 | ||
| 129 |      /** | |
| 130 |       * Sets the value of the context property. | |
| 131 |       *  | |
| 132 |       * @param value | |
| 133 |       *     allowed object is | |
| 134 |       *     {@link String } | |
| 135 |       *      | |
| 136 |       */ | |
| 137 | public void setContext(String value) { | |
| 138 | 2 |          this.context = value; | 
| 139 | 2 | } | 
| 140 | ||
| 141 |      /** | |
| 142 |       * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
| 143 |       *  | |
| 144 |       * <p> | |
| 145 |       * the map is keyed by the name of the attribute and  | |
| 146 |       * the value is the string value of the attribute. | |
| 147 |       *  | |
| 148 |       * the map returned by this method is live, and you can add new attribute | |
| 149 |       * by updating the map directly. Because of this design, there's no setter. | |
| 150 |       *  | |
| 151 |       *  | |
| 152 |       * @return | |
| 153 |       *     always non-null | |
| 154 |       */ | |
| 155 |      public Map<QName, String> getOtherAttributes() { | |
| 156 | 0 |          return otherAttributes; | 
| 157 | } | |
| 158 | ||
| 159 | } |