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