org.example.wsHT.impl.XMLUserDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: user
* Namespace: http://www.example.org/WS-HT
* Java type: org.example.wsHT.XMLUserDocument
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.impl;
/**
* A document containing one user(@http://www.example.org/WS-HT) element.
*
* This is a complex type.
*/
public class XMLUserDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.XMLUserDocument
{
private static final long serialVersionUID = 1L;
public XMLUserDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName USER$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "user");
/**
* Gets the "user" element
*/
public java.lang.String getUser()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "user" element
*/
public org.example.wsHT.XMLTUser xgetUser()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().find_element_user(USER$0, 0);
return target;
}
}
/**
* Sets the "user" element
*/
public void setUser(java.lang.String user)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USER$0);
}
target.setStringValue(user);
}
}
/**
* Sets (as xml) the "user" element
*/
public void xsetUser(org.example.wsHT.XMLTUser user)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().find_element_user(USER$0, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTUser)get_store().add_element_user(USER$0);
}
target.set(user);
}
}
}