//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs
// 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: 2008.05.13 at 05:26:58 PM WEST
//
package org.openxdm.xcap.common.xcapdiff;
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.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;
/**
* <p>Java class for documentType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="documentType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice minOccurs="0">
* <element name="body-not-changed" type="{urn:ietf:params:xml:ns:xcap-diff}emptyType"/>
* <sequence maxOccurs="unbounded" minOccurs="0">
* <choice>
* <element name="add">
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}add">
* </extension>
* </complexContent>
* </complexType>
* </element>
* <element name="remove">
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}remove">
* </extension>
* </complexContent>
* </complexType>
* </element>
* <element name="replace">
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}replace">
* </extension>
* </complexContent>
* </complexType>
* </element>
* <any/>
* </choice>
* </sequence>
* </choice>
* <attribute name="sel" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="new-etag" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="previous-etag" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "documentType", propOrder = {
"bodyNotChanged",
"addOrRemoveOrReplace"
})
public class DocumentType {
@XmlElement(name = "body-not-changed")
protected EmptyType bodyNotChanged;
@XmlElementRefs({
@XmlElementRef(name = "remove", namespace = "urn:ietf:params:xml:ns:xcap-diff", type = JAXBElement.class),
@XmlElementRef(name = "replace", namespace = "urn:ietf:params:xml:ns:xcap-diff", type = JAXBElement.class),
@XmlElementRef(name = "add", namespace = "urn:ietf:params:xml:ns:xcap-diff", type = JAXBElement.class)
})
@XmlAnyElement(lax = true)
protected List<Object> addOrRemoveOrReplace;
@XmlAttribute(required = true)
@XmlSchemaType(name = "anyURI")
protected String sel;
@XmlAttribute(name = "new-etag")
protected String newEtag;
@XmlAttribute(name = "previous-etag")
protected String previousEtag;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the bodyNotChanged property.
*
* @return
* possible object is
* {@link EmptyType }
*
*/
public EmptyType getBodyNotChanged() {
return bodyNotChanged;
}
/**
* Sets the value of the bodyNotChanged property.
*
* @param value
* allowed object is
* {@link EmptyType }
*
*/
public void setBodyNotChanged(EmptyType value) {
this.bodyNotChanged = value;
}
/**
* Gets the value of the addOrRemoveOrReplace 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 addOrRemoveOrReplace property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAddOrRemoveOrReplace().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link JAXBElement }{@code <}{@link DocumentType.Remove }{@code >}
* {@link Element }
* {@link JAXBElement }{@code <}{@link DocumentType.Replace }{@code >}
* {@link JAXBElement }{@code <}{@link DocumentType.Add }{@code >}
*
*
*/
public List<Object> getAddOrRemoveOrReplace() {
if (addOrRemoveOrReplace == null) {
addOrRemoveOrReplace = new ArrayList<Object>();
}
return this.addOrRemoveOrReplace;
}
/**
* Gets the value of the sel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSel() {
return sel;
}
/**
* Sets the value of the sel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSel(String value) {
this.sel = value;
}
/**
* Gets the value of the newEtag property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNewEtag() {
return newEtag;
}
/**
* Sets the value of the newEtag property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNewEtag(String value) {
this.newEtag = value;
}
/**
* Gets the value of the previousEtag property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPreviousEtag() {
return previousEtag;
}
/**
* Sets the value of the previousEtag property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPreviousEtag(String value) {
this.previousEtag = 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>
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}add">
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Add
extends org.openxdm.xcap.common.xcapdiff.Add
{
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* 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>
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}remove">
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Remove
extends org.openxdm.xcap.common.xcapdiff.Remove
{
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* 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>
* <complexType>
* <complexContent>
* <extension base="{urn:ietf:params:xml:ns:xcap-diff}replace">
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Replace
extends org.openxdm.xcap.common.xcapdiff.Replace
{
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* 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;
}
}
}