public class DocumentType extends Object
Java class for documentType complex type.
The following schema fragment specifies the expected content contained within this class.
<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>
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentType.Add
Java class for anonymous complex type.
|
static class |
DocumentType.Remove
Java class for anonymous complex type.
|
static class |
DocumentType.Replace
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
addOrRemoveOrReplace |
protected EmptyType |
bodyNotChanged |
protected String |
newEtag |
protected String |
previousEtag |
protected String |
sel |
| Constructor and Description |
|---|
DocumentType() |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getAddOrRemoveOrReplace()
Gets the value of the addOrRemoveOrReplace property.
|
EmptyType |
getBodyNotChanged()
Gets the value of the bodyNotChanged property.
|
String |
getNewEtag()
Gets the value of the newEtag property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
String |
getPreviousEtag()
Gets the value of the previousEtag property.
|
String |
getSel()
Gets the value of the sel property.
|
void |
setBodyNotChanged(EmptyType value)
Sets the value of the bodyNotChanged property.
|
void |
setNewEtag(String value)
Sets the value of the newEtag property.
|
void |
setPreviousEtag(String value)
Sets the value of the previousEtag property.
|
void |
setSel(String value)
Sets the value of the sel property.
|
protected EmptyType bodyNotChanged
protected String sel
protected String newEtag
protected String previousEtag
public EmptyType getBodyNotChanged()
EmptyTypepublic void setBodyNotChanged(EmptyType value)
value - allowed object is
EmptyTypepublic List<Object> getAddOrRemoveOrReplace()
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 addOrRemoveOrReplace property.
For example, to add a new item, do as follows:
getAddOrRemoveOrReplace().add(newItem);
Objects of the following type(s) are allowed in the list
Object
JAXBElement<DocumentType.Remove>
Element
JAXBElement<DocumentType.Replace>
JAXBElement<DocumentType.Add>
public void setSel(String value)
value - allowed object is
Stringpublic String getNewEtag()
Stringpublic void setNewEtag(String value)
value - allowed object is
Stringpublic String getPreviousEtag()
Stringpublic void setPreviousEtag(String value)
value - allowed object is
Stringpublic Map<QName,String> getOtherAttributes()
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.
Copyright © 2016. All Rights Reserved.