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.mows_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.XmlRootElement; 32 import javax.xml.bind.annotation.XmlSchemaType; 33 import javax.xml.bind.annotation.XmlType; 34 import javax.xml.namespace.QName; 35 36 37 /** 38 * <p>Java class for anonymous complex type. 39 * 40 * <p>The following schema fragment specifies the expected content contained within this class. 41 * 42 * <pre> 43 * <complexType> 44 * <complexContent> 45 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 46 * <sequence> 47 * <element name="description" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> 48 * </sequence> 49 * </restriction> 50 * </complexContent> 51 * </complexType> 52 * </pre> 53 * 54 * 55 */ 56 @XmlAccessorType(XmlAccessType.FIELD) 57 @XmlType(name = "", propOrder = { 58 "description" 59 }) 60 @XmlRootElement(name = "EndpointDescriptions") 61 public class EndpointDescriptions { 62 63 @XmlSchemaType(name = "anyURI") 64 protected List<String> description; 65 @XmlAnyAttribute 66 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 67 68 /** 69 * Gets the value of the description property. 70 * 71 * <p> 72 * This accessor method returns a reference to the live list, 73 * not a snapshot. Therefore any modification you make to the 74 * returned list will be present inside the JAXB object. 75 * This is why there is not a <CODE>set</CODE> method for the description property. 76 * 77 * <p> 78 * For example, to add a new item, do as follows: 79 * <pre> 80 * getDescription().add(newItem); 81 * </pre> 82 * 83 * 84 * <p> 85 * Objects of the following type(s) are allowed in the list 86 * {@link String } 87 * 88 * 89 */ 90 public List<String> getDescription() { 91 if (description == null) { 92 description = new ArrayList<String>(); 93 } 94 return this.description; 95 } 96 97 /** 98 * Gets a map that contains attributes that aren't bound to any typed property on this class. 99 * 100 * <p> 101 * the map is keyed by the name of the attribute and 102 * the value is the string value of the attribute. 103 * 104 * the map returned by this method is live, and you can add new attribute 105 * by updating the map directly. Because of this design, there's no setter. 106 * 107 * 108 * @return 109 * always non-null 110 */ 111 public Map<QName, String> getOtherAttributes() { 112 return otherAttributes; 113 } 114 115 }