| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| PolicyReference | 
 | 
 | 1.2857142857142858;1.286 | 
| 1 | ||
| 2 |  package org.kuali.student.security.policy.dto; | |
| 3 | ||
| 4 |  import java.util.HashMap; | |
| 5 |  import java.util.Map; | |
| 6 |  import javax.xml.bind.annotation.XmlAccessType; | |
| 7 |  import javax.xml.bind.annotation.XmlAccessorType; | |
| 8 |  import javax.xml.bind.annotation.XmlAnyAttribute; | |
| 9 |  import javax.xml.bind.annotation.XmlAttribute; | |
| 10 |  import javax.xml.bind.annotation.XmlRootElement; | |
| 11 |  import javax.xml.bind.annotation.XmlSchemaType; | |
| 12 |  import javax.xml.bind.annotation.XmlType; | |
| 13 |  import javax.xml.namespace.QName; | |
| 14 | ||
| 15 | ||
| 16 |  /** | |
| 17 |   * <p>Java class for anonymous complex type. | |
| 18 |   *  | |
| 19 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 20 |   *  | |
| 21 |   * <pre> | |
| 22 |   * <complexType> | |
| 23 |   *   <complexContent> | |
| 24 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 25 |   *       <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
| 26 |   *       <attribute name="Digest" type="{http://www.w3.org/2001/XMLSchema}base64Binary" /> | |
| 27 |   *       <attribute name="DigestAlgorithm" type="{http://www.w3.org/2001/XMLSchema}anyURI" default="http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc" /> | |
| 28 |   *       <anyAttribute processContents='lax'/> | |
| 29 |   *     </restriction> | |
| 30 |   *   </complexContent> | |
| 31 |   * </complexType> | |
| 32 |   * </pre> | |
| 33 |   *  | |
| 34 |   *  | |
| 35 |   */ | |
| 36 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 37 |  @XmlType(name = "") | |
| 38 |  @XmlRootElement(name = "PolicyReference") | |
| 39 | 0 |  public class PolicyReference { | 
| 40 | ||
| 41 | @XmlAttribute(name = "URI", required = true) | |
| 42 |      @XmlSchemaType(name = "anyURI") | |
| 43 |      protected String uri; | |
| 44 |      @XmlAttribute(name = "Digest") | |
| 45 | protected byte[] digest; | |
| 46 |      @XmlAttribute(name = "DigestAlgorithm") | |
| 47 |      @XmlSchemaType(name = "anyURI") | |
| 48 |      protected String digestAlgorithm; | |
| 49 | 0 |      @XmlAnyAttribute | 
| 50 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
| 51 | ||
| 52 |      /** | |
| 53 |       * Gets the value of the uri property. | |
| 54 |       *  | |
| 55 |       * @return | |
| 56 |       *     possible object is | |
| 57 |       *     {@link String } | |
| 58 |       *      | |
| 59 |       */ | |
| 60 |      public String getURI() { | |
| 61 | 0 |          return uri; | 
| 62 | } | |
| 63 | ||
| 64 |      /** | |
| 65 |       * Sets the value of the uri property. | |
| 66 |       *  | |
| 67 |       * @param value | |
| 68 |       *     allowed object is | |
| 69 |       *     {@link String } | |
| 70 |       *      | |
| 71 |       */ | |
| 72 | public void setURI(String value) { | |
| 73 | 0 |          this.uri = value; | 
| 74 | 0 |      } | 
| 75 | ||
| 76 |      /** | |
| 77 |       * Gets the value of the digest property. | |
| 78 |       *  | |
| 79 |       * @return | |
| 80 |       *     possible object is | |
| 81 |       *     byte[] | |
| 82 |       */ | |
| 83 | public byte[] getDigest() { | |
| 84 | 0 |          return digest; | 
| 85 | } | |
| 86 | ||
| 87 |      /** | |
| 88 |       * Sets the value of the digest property. | |
| 89 |       *  | |
| 90 |       * @param value | |
| 91 |       *     allowed object is | |
| 92 |       *     byte[] | |
| 93 |       */ | |
| 94 | public void setDigest(byte[] value) { | |
| 95 | 0 |          this.digest = ((byte[]) value); | 
| 96 | 0 |      } | 
| 97 | ||
| 98 |      /** | |
| 99 |       * Gets the value of the digestAlgorithm property. | |
| 100 |       *  | |
| 101 |       * @return | |
| 102 |       *     possible object is | |
| 103 |       *     {@link String } | |
| 104 |       *      | |
| 105 |       */ | |
| 106 |      public String getDigestAlgorithm() { | |
| 107 | 0 |          if (digestAlgorithm == null) { | 
| 108 | 0 |              return "http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc"; | 
| 109 |          } else { | |
| 110 | 0 |              return digestAlgorithm; | 
| 111 | } | |
| 112 | } | |
| 113 | ||
| 114 |      /** | |
| 115 |       * Sets the value of the digestAlgorithm property. | |
| 116 |       *  | |
| 117 |       * @param value | |
| 118 |       *     allowed object is | |
| 119 |       *     {@link String } | |
| 120 |       *      | |
| 121 |       */ | |
| 122 | public void setDigestAlgorithm(String value) { | |
| 123 | 0 |          this.digestAlgorithm = value; | 
| 124 | 0 |      } | 
| 125 | ||
| 126 |      /** | |
| 127 |       * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
| 128 |       *  | |
| 129 |       * <p> | |
| 130 |       * the map is keyed by the name of the attribute and  | |
| 131 |       * the value is the string value of the attribute. | |
| 132 |       *  | |
| 133 |       * the map returned by this method is live, and you can add new attribute | |
| 134 |       * by updating the map directly. Because of this design, there's no setter. | |
| 135 |       *  | |
| 136 |       *  | |
| 137 |       * @return | |
| 138 |       *     always non-null | |
| 139 |       */ | |
| 140 |      public Map<QName, String> getOtherAttributes() { | |
| 141 | 0 |          return otherAttributes; | 
| 142 | } | |
| 143 | ||
| 144 | } |