1 2 package org.kuali.student.security.policy.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.XmlRootElement; 13 import javax.xml.bind.annotation.XmlType; 14 import javax.xml.namespace.QName; 15 import org.w3c.dom.Element; 16 17 18 /** 19 * <p>Java class for anonymous complex type. 20 * 21 * <p>The following schema fragment specifies the expected content contained within this class. 22 * 23 * <pre> 24 * <complexType> 25 * <complexContent> 26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 27 * <sequence> 28 * <any processContents='lax' maxOccurs="unbounded"/> 29 * </sequence> 30 * <anyAttribute processContents='lax'/> 31 * </restriction> 32 * </complexContent> 33 * </complexType> 34 * </pre> 35 * 36 * 37 */ 38 @XmlAccessorType(XmlAccessType.FIELD) 39 @XmlType(name = "", propOrder = { 40 "any" 41 }) 42 @XmlRootElement(name = "AppliesTo") 43 public class AppliesTo { 44 45 @XmlAnyElement(lax = true) 46 protected List<Object> any; 47 @XmlAnyAttribute 48 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 49 50 /** 51 * Gets the value of the any property. 52 * 53 * <p> 54 * This accessor method returns a reference to the live list, 55 * not a snapshot. Therefore any modification you make to the 56 * returned list will be present inside the JAXB object. 57 * This is why there is not a <CODE>set</CODE> method for the any property. 58 * 59 * <p> 60 * For example, to add a new item, do as follows: 61 * <pre> 62 * getAny().add(newItem); 63 * </pre> 64 * 65 * 66 * <p> 67 * Objects of the following type(s) are allowed in the list 68 * {@link Object } 69 * {@link Element } 70 * 71 * 72 */ 73 public List<Object> getAny() { 74 if (any == null) { 75 any = new ArrayList<Object>(); 76 } 77 return this.any; 78 } 79 80 /** 81 * Gets a map that contains attributes that aren't bound to any typed property on this class. 82 * 83 * <p> 84 * the map is keyed by the name of the attribute and 85 * the value is the string value of the attribute. 86 * 87 * the map returned by this method is live, and you can add new attribute 88 * by updating the map directly. Because of this design, there's no setter. 89 * 90 * 91 * @return 92 * always non-null 93 */ 94 public Map<QName, String> getOtherAttributes() { 95 return otherAttributes; 96 } 97 98 }