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

org.musicbrainz.ns.mmd_2.Relation Maven / Gradle / Ivy

There is a newer version: 1.0-ALPHA-12
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.04.12 at 04:01:25 PM CEST 
//


package org.musicbrainz.ns.mmd_2;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.w3c.dom.Element;


/**
 * 

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">
 *       <sequence>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}target"/>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}ordering-key" minOccurs="0"/>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}direction" minOccurs="0"/>
 *         <group ref="{http://musicbrainz.org/ns/mmd-2.0#}def_attribute-list" minOccurs="0"/>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}begin" minOccurs="0"/>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}end" minOccurs="0"/>
 *         <element ref="{http://musicbrainz.org/ns/mmd-2.0#}ended" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}artist"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}release"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}release-group"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}recording"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}label"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}work"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}area"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}place"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}instrument"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}series"/>
 *           <element ref="{http://musicbrainz.org/ns/mmd-2.0#}event"/>
 *           <group ref="{http://musicbrainz.org/ns/mmd-2.0#}def_relation-element_extension"/>
 *         </choice>
 *       </sequence>
 *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="type-id" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "target", "orderingKey", "direction", "attributeList", "begin", "end", "ended", "artist", "release", "releaseGroup", "recording", "label", "work", "area", "place", "instrument", "series", "event", "any" }) @XmlRootElement(name = "relation") public class Relation { @XmlElement(required = true) protected Target target; @XmlElement(name = "ordering-key") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger orderingKey; protected DefDirection direction; @XmlElement(name = "attribute-list") protected Relation.AttributeList attributeList; protected String begin; protected String end; @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String ended; protected Artist artist; protected Release release; @XmlElement(name = "release-group") protected ReleaseGroup releaseGroup; protected Recording recording; protected Label label; protected Work work; protected DefAreaElementInner area; protected Place place; protected Instrument instrument; protected Series series; protected Event event; @XmlAnyElement protected Element any; @XmlAttribute(required = true) @XmlSchemaType(name = "anyURI") protected String type; @XmlAttribute(name = "type-id", required = true) @XmlSchemaType(name = "anyURI") protected String typeId; /** * Gets the value of the target property. * * @return * possible object is * {@link Target } * */ public Target getTarget() { return target; } /** * Sets the value of the target property. * * @param value * allowed object is * {@link Target } * */ public void setTarget(Target value) { this.target = value; } /** * Gets the value of the orderingKey property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getOrderingKey() { return orderingKey; } /** * Sets the value of the orderingKey property. * * @param value * allowed object is * {@link BigInteger } * */ public void setOrderingKey(BigInteger value) { this.orderingKey = value; } /** * Gets the value of the direction property. * * @return * possible object is * {@link DefDirection } * */ public DefDirection getDirection() { return direction; } /** * Sets the value of the direction property. * * @param value * allowed object is * {@link DefDirection } * */ public void setDirection(DefDirection value) { this.direction = value; } /** * Gets the value of the attributeList property. * * @return * possible object is * {@link Relation.AttributeList } * */ public Relation.AttributeList getAttributeList() { return attributeList; } /** * Sets the value of the attributeList property. * * @param value * allowed object is * {@link Relation.AttributeList } * */ public void setAttributeList(Relation.AttributeList value) { this.attributeList = value; } /** * Gets the value of the begin property. * * @return * possible object is * {@link String } * */ public String getBegin() { return begin; } /** * Sets the value of the begin property. * * @param value * allowed object is * {@link String } * */ public void setBegin(String value) { this.begin = value; } /** * Gets the value of the end property. * * @return * possible object is * {@link String } * */ public String getEnd() { return end; } /** * Sets the value of the end property. * * @param value * allowed object is * {@link String } * */ public void setEnd(String value) { this.end = value; } /** * Gets the value of the ended property. * * @return * possible object is * {@link String } * */ public String getEnded() { return ended; } /** * Sets the value of the ended property. * * @param value * allowed object is * {@link String } * */ public void setEnded(String value) { this.ended = value; } /** * Gets the value of the artist property. * * @return * possible object is * {@link Artist } * */ public Artist getArtist() { return artist; } /** * Sets the value of the artist property. * * @param value * allowed object is * {@link Artist } * */ public void setArtist(Artist value) { this.artist = value; } /** * Gets the value of the release property. * * @return * possible object is * {@link Release } * */ public Release getRelease() { return release; } /** * Sets the value of the release property. * * @param value * allowed object is * {@link Release } * */ public void setRelease(Release value) { this.release = value; } /** * Gets the value of the releaseGroup property. * * @return * possible object is * {@link ReleaseGroup } * */ public ReleaseGroup getReleaseGroup() { return releaseGroup; } /** * Sets the value of the releaseGroup property. * * @param value * allowed object is * {@link ReleaseGroup } * */ public void setReleaseGroup(ReleaseGroup value) { this.releaseGroup = value; } /** * Gets the value of the recording property. * * @return * possible object is * {@link Recording } * */ public Recording getRecording() { return recording; } /** * Sets the value of the recording property. * * @param value * allowed object is * {@link Recording } * */ public void setRecording(Recording value) { this.recording = value; } /** * Gets the value of the label property. * * @return * possible object is * {@link Label } * */ public Label getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link Label } * */ public void setLabel(Label value) { this.label = value; } /** * Gets the value of the work property. * * @return * possible object is * {@link Work } * */ public Work getWork() { return work; } /** * Sets the value of the work property. * * @param value * allowed object is * {@link Work } * */ public void setWork(Work value) { this.work = value; } /** * Gets the value of the area property. * * @return * possible object is * {@link DefAreaElementInner } * */ public DefAreaElementInner getArea() { return area; } /** * Sets the value of the area property. * * @param value * allowed object is * {@link DefAreaElementInner } * */ public void setArea(DefAreaElementInner value) { this.area = value; } /** * Gets the value of the place property. * * @return * possible object is * {@link Place } * */ public Place getPlace() { return place; } /** * Sets the value of the place property. * * @param value * allowed object is * {@link Place } * */ public void setPlace(Place value) { this.place = value; } /** * Gets the value of the instrument property. * * @return * possible object is * {@link Instrument } * */ public Instrument getInstrument() { return instrument; } /** * Sets the value of the instrument property. * * @param value * allowed object is * {@link Instrument } * */ public void setInstrument(Instrument value) { this.instrument = value; } /** * Gets the value of the series property. * * @return * possible object is * {@link Series } * */ public Series getSeries() { return series; } /** * Sets the value of the series property. * * @param value * allowed object is * {@link Series } * */ public void setSeries(Series value) { this.series = value; } /** * Gets the value of the event property. * * @return * possible object is * {@link Event } * */ public Event getEvent() { return event; } /** * Sets the value of the event property. * * @param value * allowed object is * {@link Event } * */ public void setEvent(Event value) { this.event = value; } /** * Gets the value of the any property. * * @return * possible object is * {@link Element } * */ public Element getAny() { return any; } /** * Sets the value of the any property. * * @param value * allowed object is * {@link Element } * */ public void setAny(Element value) { this.any = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the typeId property. * * @return * possible object is * {@link String } * */ public String getTypeId() { return typeId; } /** * Sets the value of the typeId property. * * @param value * allowed object is * {@link String } * */ public void setTypeId(String value) { this.typeId = 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">
     *       <sequence>
     *         <element name="attribute" maxOccurs="unbounded">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
     *                 <attribute name="credited-as" type="{http://www.w3.org/2001/XMLSchema}string" />
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "attribute" }) public static class AttributeList { @XmlElement(required = true) protected List attribute; /** * Gets the value of the attribute 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 attribute property. * *

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

         *    getAttribute().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Relation.AttributeList.Attribute } * * */ public List getAttribute() { if (attribute == null) { attribute = new ArrayList(); } return this.attribute; } /** *

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">
         *       <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
         *       <attribute name="credited-as" type="{http://www.w3.org/2001/XMLSchema}string" />
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) public static class Attribute { @XmlValue protected String content; @XmlAttribute protected String value; @XmlAttribute(name = "credited-as") protected String creditedAs; /** * Gets the value of the content property. * * @return * possible object is * {@link String } * */ public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(String value) { this.content = value; } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the creditedAs property. * * @return * possible object is * {@link String } * */ public String getCreditedAs() { return creditedAs; } /** * Sets the value of the creditedAs property. * * @param value * allowed object is * {@link String } * */ public void setCreditedAs(String value) { this.creditedAs = value; } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy