Clover Coverage Report - KS Security 1.3.0-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Apr 28 2011 06:25:04 EDT
../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
9   144   8   1.29
2   51   0.89   7
7     1.14  
1    
 
  PolicyReference       Line # 39 9 0% 8 18 0% 0.0
 
No Tests
 
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    * &lt;complexType>
23    * &lt;complexContent>
24    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25    * &lt;attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
26    * &lt;attribute name="Digest" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
27    * &lt;attribute name="DigestAlgorithm" type="{http://www.w3.org/2001/XMLSchema}anyURI" default="http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc" />
28    * &lt;anyAttribute processContents='lax'/>
29    * &lt;/restriction>
30    * &lt;/complexContent>
31    * &lt;/complexType>
32    * </pre>
33    *
34    *
35    */
36    @XmlAccessorType(XmlAccessType.FIELD)
37    @XmlType(name = "")
38    @XmlRootElement(name = "PolicyReference")
 
39    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    @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  0 toggle 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  0 toggle public void setURI(String value) {
73  0 this.uri = value;
74    }
75   
76    /**
77    * Gets the value of the digest property.
78    *
79    * @return
80    * possible object is
81    * byte[]
82    */
 
83  0 toggle 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  0 toggle public void setDigest(byte[] value) {
95  0 this.digest = ((byte[]) value);
96    }
97   
98    /**
99    * Gets the value of the digestAlgorithm property.
100    *
101    * @return
102    * possible object is
103    * {@link String }
104    *
105    */
 
106  0 toggle 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  0 toggle public void setDigestAlgorithm(String value) {
123  0 this.digestAlgorithm = value;
124    }
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  0 toggle public Map<QName, String> getOtherAttributes() {
141  0 return otherAttributes;
142    }
143   
144    }