All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.xmi.Difference Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2013.09.13 at 12:06:48 PM EST 
//


package org.omg.xmi;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;


/**
 * 

Java class for Difference complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Difference">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element name="target">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <choice maxOccurs="unbounded" minOccurs="0">
 *                   <any processContents='skip'/>
 *                 </choice>
 *                 <anyAttribute processContents='skip'/>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="difference" type="{http://www.omg.org/spec/XMI/20110701}Difference"/>
 *         <element name="container" type="{http://www.omg.org/spec/XMI/20110701}Difference"/>
 *         <element ref="{http://www.omg.org/spec/XMI/20110701}Extension"/>
 *       </choice>
 *       <attGroup ref="{http://www.omg.org/spec/XMI/20110701}ObjectAttribs"/>
 *       <attribute ref="{http://www.omg.org/spec/XMI/20110701}id"/>
 *       <attribute name="target" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
 *       <attribute name="container" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Difference", propOrder = { "targetOrDifferenceOrContainer" }) @XmlSeeAlso({ Replace.class, Add.class, Delete.class }) public class Difference { @XmlElementRefs({ @XmlElementRef(name = "Extension", namespace = "http://www.omg.org/spec/XMI/20110701", type = JAXBElement.class), @XmlElementRef(name = "container", type = JAXBElement.class), @XmlElementRef(name = "difference", type = JAXBElement.class), @XmlElementRef(name = "target", type = JAXBElement.class) }) protected List> targetOrDifferenceOrContainer; @XmlAttribute(name = "id", namespace = "http://www.omg.org/spec/XMI/20110701") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "target") @XmlIDREF @XmlSchemaType(name = "IDREFS") protected List target; @XmlAttribute(name = "container") @XmlIDREF @XmlSchemaType(name = "IDREFS") protected List container; @XmlAttribute(name = "type", namespace = "http://www.omg.org/spec/XMI/20110701") protected QName type; @XmlAttribute(name = "label", namespace = "http://www.omg.org/spec/XMI/20110701") protected String label; @XmlAttribute(name = "uuid", namespace = "http://www.omg.org/spec/XMI/20110701") protected String uuid; @XmlAttribute(name = "href") @XmlSchemaType(name = "anyURI") protected String href; @XmlAttribute(name = "idref", namespace = "http://www.omg.org/spec/XMI/20110701") @XmlIDREF @XmlSchemaType(name = "IDREF") protected Object idref; /** * Gets the value of the targetOrDifferenceOrContainer property. * *

* 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 set method for the targetOrDifferenceOrContainer property. * *

* For example, to add a new item, do as follows: *

     *    getTargetOrDifferenceOrContainer().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link Difference.Target }{@code >} * {@link JAXBElement }{@code <}{@link Extension }{@code >} * {@link JAXBElement }{@code <}{@link Difference }{@code >} * {@link JAXBElement }{@code <}{@link Difference }{@code >} * * */ public List> getTargetOrDifferenceOrContainer() { if (targetOrDifferenceOrContainer == null) { targetOrDifferenceOrContainer = new ArrayList>(); } return this.targetOrDifferenceOrContainer; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the target property. * *

* 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 set method for the target property. * *

* For example, to add a new item, do as follows: *

     *    getTarget().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getTarget() { if (target == null) { target = new ArrayList(); } return this.target; } /** * Gets the value of the container property. * *

* 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 set method for the container property. * *

* For example, to add a new item, do as follows: *

     *    getContainer().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getContainer() { if (container == null) { container = new ArrayList(); } return this.container; } /** * Gets the value of the type property. * * @return * possible object is * {@link QName } * */ public QName getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link QName } * */ public void setType(QName value) { this.type = value; } /** * Gets the value of the label property. * * @return * possible object is * {@link String } * */ public String getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link String } * */ public void setLabel(String value) { this.label = value; } /** * Gets the value of the uuid property. * * @return * possible object is * {@link String } * */ public String getUuid() { return uuid; } /** * Sets the value of the uuid property. * * @param value * allowed object is * {@link String } * */ public void setUuid(String value) { this.uuid = value; } /** * Gets the value of the href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } /** * Gets the value of the idref property. * * @return * possible object is * {@link Object } * */ public Object getIdref() { return idref; } /** * Sets the value of the idref property. * * @param value * allowed object is * {@link Object } * */ public void setIdref(Object value) { this.idref = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <choice maxOccurs="unbounded" minOccurs="0">
     *         <any processContents='skip'/>
     *       </choice>
     *       <anyAttribute processContents='skip'/>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "any" }) public static class Target { @XmlAnyElement protected List any; @XmlAnyAttribute private Map otherAttributes = new HashMap(); /** * Gets the value of the any property. * *

* 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 set method for the any property. * *

* For example, to add a new item, do as follows: *

         *    getAny().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Element } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* 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 getOtherAttributes() { return otherAttributes; } } }