// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.01.27 at 08:53:01 PM MEZ // package de.openstreetmap.josm.tagging_preset_1; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyAttribute; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElements; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.namespace.QName; /** * <p> * Java class for group complex type. * * <p> * The following schema fragment specifies the expected content contained within * this class. * * <pre> * <complexType name="group"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <choice maxOccurs="unbounded"> * <element name="group" type="{http://josm.openstreetmap.de/tagging-preset-1.0}group"/> * <element name="item" type="{http://josm.openstreetmap.de/tagging-preset-1.0}item"/> * <element name="separator" type="{http://josm.openstreetmap.de/tagging-preset-1.0}separator"/> * </choice> * </sequence> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="icon" type="{http://www.w3.org/2001/XMLSchema}string" /> * <anyAttribute processContents='skip'/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "group", propOrder = { "groupOrItemOrSeparator" }) @XmlSeeAlso({ Root.class }) public class Group { @XmlElements({ @XmlElement(name = "item", type = Item.class), @XmlElement(name = "separator", type = Separator.class), @XmlElement(name = "group", type = Group.class) }) protected List<Object> groupOrItemOrSeparator; @XmlAttribute protected String name; @XmlAttribute protected String icon; @XmlAnyAttribute private Map<QName, String> otherAttributes = new HashMap<QName, String>(); /** * Gets the value of the groupOrItemOrSeparator property. * * <p> * This accessor method returns a reference to the live list, not a * snapshot. Therefore any modification you make to the returned list will * be present inside the JAXB object. This is why there is not a * <CODE>set</CODE> method for the groupOrItemOrSeparator property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getGroupOrItemOrSeparator().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link Item } * {@link Separator } {@link Group } * * */ public List<Object> getGroupOrItemOrSeparator() { if (groupOrItemOrSeparator == null) { groupOrItemOrSeparator = new ArrayList<Object>(); } return this.groupOrItemOrSeparator; } /** * Gets the value of the name property. * * @return possible object is {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the icon property. * * @return possible object is {@link String } * */ public String getIcon() { return icon; } /** * Sets the value of the icon property. * * @param value * allowed object is {@link String } * */ public void setIcon(String value) { this.icon = value; } /** * Gets a map that contains attributes that aren't bound to any typed * property on this class. * * <p> * the map is keyed by the name of the attribute and the value is the string * value of the attribute. * * the map returned by this method is live, and you can add new attribute by * updating the map directly. Because of this design, there's no setter. * * * @return always non-null */ public Map<QName, String> getOtherAttributes() { return otherAttributes; } }