//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 
// 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: 2013.02.20 at 04:22:13 PM CET 
//


package be.iminds.ilabt.jfed.rspec.request.geni_rspec_3;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * <p>Java class for NodeContents complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="NodeContents">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
 *         &lt;choice>
 *           &lt;group ref="{http://www.geni.net/resources/rspec/3}AnyExtension"/>
 *           &lt;element ref="{http://www.geni.net/resources/rspec/3}relation"/>
 *           &lt;element ref="{http://www.geni.net/resources/rspec/3}location"/>
 *           &lt;element ref="{http://www.geni.net/resources/rspec/3}services"/>
 *           &lt;element ref="{http://www.geni.net/resources/rspec/3}interface"/>
 *         &lt;/choice>
 *         &lt;choice>
 *           &lt;element ref="{http://www.geni.net/resources/rspec/3}hardware_type"/>
 *           &lt;element name="sliver_type">
 *             &lt;complexType>
 *               &lt;complexContent>
 *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                   &lt;choice maxOccurs="unbounded" minOccurs="0">
 *                     &lt;group ref="{http://www.geni.net/resources/rspec/3}SliverTypeContents"/>
 *                     &lt;element ref="{http://www.geni.net/resources/rspec/3}disk_image"/>
 *                   &lt;/choice>
 *                   &lt;attGroup ref="{http://www.geni.net/resources/rspec/3}SliverTypeContents"/>
 *                 &lt;/restriction>
 *               &lt;/complexContent>
 *             &lt;/complexType>
 *           &lt;/element>
 *         &lt;/choice>
 *       &lt;/choice>
 *       &lt;attGroup ref="{http://www.geni.net/resources/rspec/3}AnyExtension"/>
 *       &lt;attribute name="client_id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       &lt;attribute name="component_id" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       &lt;attribute name="component_manager_id" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       &lt;attribute name="component_name" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       &lt;attribute name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       &lt;attribute name="colocate" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       &lt;anyAttribute processContents='lax' namespace='##other'/>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NodeContents", propOrder = {
    "anyOrRelationOrLocation"
})
@XmlRootElement(name = "node")
public class NodeContents {

    @XmlElementRefs({
        @XmlElementRef(name = "location", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class),
        @XmlElementRef(name = "interface", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class),
        @XmlElementRef(name = "hardware_type", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class),
        @XmlElementRef(name = "relation", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class),
        @XmlElementRef(name = "services", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class),
        @XmlElementRef(name = "sliver_type", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class)
    })
    @XmlAnyElement(lax = true)
    protected List<Object> anyOrRelationOrLocation;
    @XmlAttribute(name = "client_id", required = true)
    @XmlSchemaType(name = "anySimpleType")
    protected String clientId;
    @XmlAttribute(name = "component_id")
    @XmlSchemaType(name = "anySimpleType")
    protected String componentId;
    @XmlAttribute(name = "component_manager_id")
    @XmlSchemaType(name = "anySimpleType")
    protected String componentManagerId;
    @XmlAttribute(name = "component_name")
    @XmlSchemaType(name = "anySimpleType")
    protected String componentName;
    @XmlAttribute
    protected Boolean exclusive;
    @XmlAttribute
    @XmlSchemaType(name = "anySimpleType")
    protected String colocate;
    @XmlAnyAttribute
    private Map<QName, String> otherAttributes = new HashMap<QName, String>();

    /**
     * Gets the value of the anyOrRelationOrLocation 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 anyOrRelationOrLocation property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getAnyOrRelationOrLocation().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link be.iminds.ilabt.jfed.rspec.request.geni_rspec_3.LocationContents }{@code >}
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link be.iminds.ilabt.jfed.rspec.request.geni_rspec_3.InterfaceContents }{@code >}
     * {@link org.w3c.dom.Element }
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link be.iminds.ilabt.jfed.rspec.request.geni_rspec_3.HardwareTypeContents }{@code >}
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link RelationContents }{@code >}
     * {@link Object }
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link ServiceContents }{@code >}
     * {@link javax.xml.bind.JAXBElement }{@code <}{@link be.iminds.ilabt.jfed.rspec.request.geni_rspec_3.NodeContents.SliverType }{@code >}
     * 
     * 
     */
    public List<Object> getAnyOrRelationOrLocation() {
        if (anyOrRelationOrLocation == null) {
            anyOrRelationOrLocation = new ArrayList<Object>();
        }
        return this.anyOrRelationOrLocation;
    }

    /**
     * Gets the value of the clientId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getClientId() {
        return clientId;
    }

    /**
     * Sets the value of the clientId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setClientId(String value) {
        this.clientId = value;
    }

    /**
     * Gets the value of the componentId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getComponentId() {
        return componentId;
    }

    /**
     * Sets the value of the componentId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setComponentId(String value) {
        this.componentId = value;
    }

    /**
     * Gets the value of the componentManagerId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getComponentManagerId() {
        return componentManagerId;
    }

    /**
     * Sets the value of the componentManagerId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setComponentManagerId(String value) {
        this.componentManagerId = value;
    }

    /**
     * Gets the value of the componentName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getComponentName() {
        return componentName;
    }

    /**
     * Sets the value of the componentName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setComponentName(String value) {
        this.componentName = value;
    }

    /**
     * Gets the value of the exclusive property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isExclusive() {
        return exclusive;
    }

    /**
     * Sets the value of the exclusive property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setExclusive(Boolean value) {
        this.exclusive = value;
    }

    /**
     * Gets the value of the colocate property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getColocate() {
        return colocate;
    }

    /**
     * Sets the value of the colocate property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setColocate(String value) {
        this.colocate = 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;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;choice maxOccurs="unbounded" minOccurs="0">
     *         &lt;group ref="{http://www.geni.net/resources/rspec/3}SliverTypeContents"/>
     *         &lt;element ref="{http://www.geni.net/resources/rspec/3}disk_image"/>
     *       &lt;/choice>
     *       &lt;attGroup ref="{http://www.geni.net/resources/rspec/3}SliverTypeContents"/>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "anyOrDiskImage"
    })
    @XmlRootElement(name = "sliver_type")
    public static class SliverType {

        @XmlElementRef(name = "disk_image", namespace = "http://www.geni.net/resources/rspec/3", type = JAXBElement.class)
        @XmlAnyElement(lax = true)
        protected List<Object> anyOrDiskImage;
        @XmlAttribute(required = true)
        @XmlSchemaType(name = "anySimpleType")
        protected String name;
        @XmlAnyAttribute
        private Map<QName, String> otherAttributes = new HashMap<QName, String>();

        /**
         * Gets the value of the anyOrDiskImage 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 anyOrDiskImage property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getAnyOrDiskImage().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link javax.xml.bind.JAXBElement }{@code <}{@link be.iminds.ilabt.jfed.rspec.request.geni_rspec_3.DiskImageContents }{@code >}
         * {@link org.w3c.dom.Element }
         * {@link Object }
         * 
         * 
         */
        public List<Object> getAnyOrDiskImage() {
            if (anyOrDiskImage == null) {
                anyOrDiskImage = new ArrayList<Object>();
            }
            return this.anyOrDiskImage;
        }

        /**
         * 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 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;
        }

    }

}
