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