| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Policy |
|
| 1.0;1 |
| 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.XmlID; | |
| 11 | import javax.xml.bind.annotation.XmlRootElement; | |
| 12 | import javax.xml.bind.annotation.XmlSchemaType; | |
| 13 | import javax.xml.bind.annotation.XmlType; | |
| 14 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | |
| 15 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 16 | import javax.xml.namespace.QName; | |
| 17 | ||
| 18 | ||
| 19 | /** | |
| 20 | * <p>Java class for anonymous complex type. | |
| 21 | * | |
| 22 | * <p>The following schema fragment specifies the expected content contained within this class. | |
| 23 | * | |
| 24 | * <pre> | |
| 25 | * <complexType> | |
| 26 | * <complexContent> | |
| 27 | * <extension base="{http://schemas.xmlsoap.org/ws/2004/09/policy}OperatorContentType"> | |
| 28 | * <attribute name="Name" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
| 29 | * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/> | |
| 30 | * <anyAttribute processContents='lax'/> | |
| 31 | * </extension> | |
| 32 | * </complexContent> | |
| 33 | * </complexType> | |
| 34 | * </pre> | |
| 35 | * | |
| 36 | * | |
| 37 | */ | |
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 39 | @XmlType(name = "") | |
| 40 | @XmlRootElement(name = "Policy") | |
| 41 | 0 | public class Policy |
| 42 | extends OperatorContentType | |
| 43 | { | |
| 44 | ||
| 45 | @XmlAttribute(name = "Name") | |
| 46 | @XmlSchemaType(name = "anyURI") | |
| 47 | protected String name; | |
| 48 | @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd") | |
| 49 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
| 50 | @XmlID | |
| 51 | @XmlSchemaType(name = "ID") | |
| 52 | protected String id; | |
| 53 | 0 | @XmlAnyAttribute |
| 54 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
| 55 | ||
| 56 | /** | |
| 57 | * Gets the value of the name property. | |
| 58 | * | |
| 59 | * @return | |
| 60 | * possible object is | |
| 61 | * {@link String } | |
| 62 | * | |
| 63 | */ | |
| 64 | public String getName() { | |
| 65 | 0 | return name; |
| 66 | } | |
| 67 | ||
| 68 | /** | |
| 69 | * Sets the value of the name property. | |
| 70 | * | |
| 71 | * @param value | |
| 72 | * allowed object is | |
| 73 | * {@link String } | |
| 74 | * | |
| 75 | */ | |
| 76 | public void setName(String value) { | |
| 77 | 0 | this.name = value; |
| 78 | 0 | } |
| 79 | ||
| 80 | /** | |
| 81 | * Gets the value of the id property. | |
| 82 | * | |
| 83 | * @return | |
| 84 | * possible object is | |
| 85 | * {@link String } | |
| 86 | * | |
| 87 | */ | |
| 88 | public String getId() { | |
| 89 | 0 | return id; |
| 90 | } | |
| 91 | ||
| 92 | /** | |
| 93 | * Sets the value of the id property. | |
| 94 | * | |
| 95 | * @param value | |
| 96 | * allowed object is | |
| 97 | * {@link String } | |
| 98 | * | |
| 99 | */ | |
| 100 | public void setId(String value) { | |
| 101 | 0 | this.id = value; |
| 102 | 0 | } |
| 103 | ||
| 104 | /** | |
| 105 | * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
| 106 | * | |
| 107 | * <p> | |
| 108 | * the map is keyed by the name of the attribute and | |
| 109 | * the value is the string value of the attribute. | |
| 110 | * | |
| 111 | * the map returned by this method is live, and you can add new attribute | |
| 112 | * by updating the map directly. Because of this design, there's no setter. | |
| 113 | * | |
| 114 | * | |
| 115 | * @return | |
| 116 | * always non-null | |
| 117 | */ | |
| 118 | public Map<QName, String> getOtherAttributes() { | |
| 119 | 0 | return otherAttributes; |
| 120 | } | |
| 121 | ||
| 122 | } |