1 /** 2 * This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * If it is not possible or desirable to put the notice in a particular 7 * file, then You may include the notice in a location (such as a LICENSE 8 * file in a relevant directory) where a recipient would be likely to look 9 * for such a notice. 10 11 * 12 */ 13 14 /* --------------------------------------------------------------------------- 15 * U.S. Government, Department of the Army 16 * Army Materiel Command 17 * Research Development Engineering Command 18 * Communications Electronics Research Development and Engineering Center 19 * --------------------------------------------------------------------------- 20 */ 21 22 package org.oasis_open.docs.wsdm.muws2_2; 23 24 import java.util.ArrayList; 25 import java.util.HashMap; 26 import java.util.List; 27 import java.util.Map; 28 import javax.xml.bind.annotation.XmlAccessType; 29 import javax.xml.bind.annotation.XmlAccessorType; 30 import javax.xml.bind.annotation.XmlAnyAttribute; 31 import javax.xml.bind.annotation.XmlAnyElement; 32 import javax.xml.bind.annotation.XmlElement; 33 import javax.xml.bind.annotation.XmlRootElement; 34 import javax.xml.bind.annotation.XmlType; 35 import javax.xml.namespace.QName; 36 import org.w3c.dom.Element; 37 38 39 /** 40 * <p>Java class for anonymous complex type. 41 * 42 * <p>The following schema fragment specifies the expected content contained within this class. 43 * 44 * <pre> 45 * <complexType> 46 * <complexContent> 47 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 48 * <sequence> 49 * <element ref="{http://docs.oasis-open.org/wsdm/muws2-2.xsd}Relationship"/> 50 * <any/> 51 * </sequence> 52 * </restriction> 53 * </complexContent> 54 * </complexType> 55 * </pre> 56 * 57 * 58 */ 59 @XmlAccessorType(XmlAccessType.FIELD) 60 @XmlType(name = "", propOrder = { 61 "relationship", 62 "any" 63 }) 64 @XmlRootElement(name = "RelationshipCreatedNotification") 65 public class RelationshipCreatedNotification { 66 67 @XmlElement(name = "Relationship", required = true) 68 protected RelationshipType relationship; 69 @XmlAnyElement(lax = true) 70 protected List<Object> any; 71 @XmlAnyAttribute 72 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 73 74 /** 75 * Gets the value of the relationship property. 76 * 77 * @return 78 * possible object is 79 * {@link RelationshipType } 80 * 81 */ 82 public RelationshipType getRelationship() { 83 return relationship; 84 } 85 86 /** 87 * Sets the value of the relationship property. 88 * 89 * @param value 90 * allowed object is 91 * {@link RelationshipType } 92 * 93 */ 94 public void setRelationship(RelationshipType value) { 95 this.relationship = value; 96 } 97 98 /** 99 * Gets the value of the any property. 100 * 101 * <p> 102 * This accessor method returns a reference to the live list, 103 * not a snapshot. Therefore any modification you make to the 104 * returned list will be present inside the JAXB object. 105 * This is why there is not a <CODE>set</CODE> method for the any property. 106 * 107 * <p> 108 * For example, to add a new item, do as follows: 109 * <pre> 110 * getAny().add(newItem); 111 * </pre> 112 * 113 * 114 * <p> 115 * Objects of the following type(s) are allowed in the list 116 * {@link Element } 117 * {@link Object } 118 * 119 * 120 */ 121 public List<Object> getAny() { 122 if (any == null) { 123 any = new ArrayList<Object>(); 124 } 125 return this.any; 126 } 127 128 /** 129 * Gets a map that contains attributes that aren't bound to any typed property on this class. 130 * 131 * <p> 132 * the map is keyed by the name of the attribute and 133 * the value is the string value of the attribute. 134 * 135 * the map returned by this method is live, and you can add new attribute 136 * by updating the map directly. Because of this design, there's no setter. 137 * 138 * 139 * @return 140 * always non-null 141 */ 142 public Map<QName, String> getOtherAttributes() { 143 return otherAttributes; 144 } 145 146 }