org.example.wsHT.api.xsd.impl.XMLAddAttachmentDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: addAttachment
* Namespace: http://www.example.org/WS-HT/api/xsd
* Java type: org.example.wsHT.api.xsd.XMLAddAttachmentDocument
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.api.xsd.impl;
/**
* A document containing one addAttachment(@http://www.example.org/WS-HT/api/xsd) element.
*
* This is a complex type.
*/
public class XMLAddAttachmentDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLAddAttachmentDocument
{
private static final long serialVersionUID = 1L;
public XMLAddAttachmentDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ADDATTACHMENT$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "addAttachment");
/**
* Gets the "addAttachment" element
*/
public org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment getAddAttachment()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment target = null;
target = (org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment)get_store().find_element_user(ADDATTACHMENT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "addAttachment" element
*/
public void setAddAttachment(org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment addAttachment)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment target = null;
target = (org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment)get_store().find_element_user(ADDATTACHMENT$0, 0);
if (target == null)
{
target = (org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment)get_store().add_element_user(ADDATTACHMENT$0);
}
target.set(addAttachment);
}
}
/**
* Appends and returns a new empty "addAttachment" element
*/
public org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment addNewAddAttachment()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment target = null;
target = (org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment)get_store().add_element_user(ADDATTACHMENT$0);
return target;
}
}
/**
* An XML addAttachment(@http://www.example.org/WS-HT/api/xsd).
*
* This is a complex type.
*/
public static class AddAttachmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLAddAttachmentDocument.AddAttachment
{
private static final long serialVersionUID = 1L;
public AddAttachmentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName IDENTIFIER$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "identifier");
private static final javax.xml.namespace.QName NAME$2 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "name");
private static final javax.xml.namespace.QName ACCESSTYPE$4 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "accessType");
private static final javax.xml.namespace.QName CONTENTTYPE$6 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "contentType");
private static final javax.xml.namespace.QName ATTACHMENT$8 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "attachment");
/**
* Gets the "identifier" element
*/
public java.lang.String getIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "identifier" element
*/
public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
return target;
}
}
/**
* Sets the "identifier" element
*/
public void setIdentifier(java.lang.String identifier)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);
}
target.setStringValue(identifier);
}
}
/**
* Sets (as xml) the "identifier" element
*/
public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);
}
target.set(identifier);
}
}
/**
* Gets the "name" element
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" element
*/
public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$2, 0);
return target;
}
}
/**
* Sets the "name" element
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$2);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" element
*/
public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$2);
}
target.set(name);
}
}
/**
* Gets the "accessType" element
*/
public java.lang.String getAccessType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSTYPE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "accessType" element
*/
public org.apache.xmlbeans.XmlString xgetAccessType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSTYPE$4, 0);
return target;
}
}
/**
* Sets the "accessType" element
*/
public void setAccessType(java.lang.String accessType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSTYPE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSTYPE$4);
}
target.setStringValue(accessType);
}
}
/**
* Sets (as xml) the "accessType" element
*/
public void xsetAccessType(org.apache.xmlbeans.XmlString accessType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSTYPE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSTYPE$4);
}
target.set(accessType);
}
}
/**
* Gets the "contentType" element
*/
public java.lang.String getContentType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTENTTYPE$6, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "contentType" element
*/
public org.apache.xmlbeans.XmlString xgetContentType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTENTTYPE$6, 0);
return target;
}
}
/**
* Sets the "contentType" element
*/
public void setContentType(java.lang.String contentType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTENTTYPE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTENTTYPE$6);
}
target.setStringValue(contentType);
}
}
/**
* Sets (as xml) the "contentType" element
*/
public void xsetContentType(org.apache.xmlbeans.XmlString contentType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTENTTYPE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CONTENTTYPE$6);
}
target.set(contentType);
}
}
/**
* Gets the "attachment" element
*/
public org.apache.xmlbeans.XmlObject getAttachment()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(ATTACHMENT$8, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "attachment" element
*/
public void setAttachment(org.apache.xmlbeans.XmlObject attachment)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(ATTACHMENT$8, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(ATTACHMENT$8);
}
target.set(attachment);
}
}
/**
* Appends and returns a new empty "attachment" element
*/
public org.apache.xmlbeans.XmlObject addNewAttachment()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(ATTACHMENT$8);
return target;
}
}
}
}