org.apache.ws.scout.uddi.impl.ContactDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: contact
* Namespace: urn:uddi-org:api_v2
* Java type: org.apache.ws.scout.uddi.ContactDocument
*
* Automatically generated - do not modify.
*/
package org.apache.ws.scout.uddi.impl;
/**
* A document containing one contact(@urn:uddi-org:api_v2) element.
*
* This is a complex type.
*/
public class ContactDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.ws.scout.uddi.ContactDocument
{
public ContactDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONTACT$0 =
new javax.xml.namespace.QName("urn:uddi-org:api_v2", "contact");
/**
* Gets the "contact" element
*/
public org.apache.ws.scout.uddi.Contact getContact()
{
synchronized (monitor())
{
check_orphaned();
org.apache.ws.scout.uddi.Contact target = null;
target = (org.apache.ws.scout.uddi.Contact)get_store().find_element_user(CONTACT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "contact" element
*/
public void setContact(org.apache.ws.scout.uddi.Contact contact)
{
synchronized (monitor())
{
check_orphaned();
org.apache.ws.scout.uddi.Contact target = null;
target = (org.apache.ws.scout.uddi.Contact)get_store().find_element_user(CONTACT$0, 0);
if (target == null)
{
target = (org.apache.ws.scout.uddi.Contact)get_store().add_element_user(CONTACT$0);
}
target.set(contact);
}
}
/**
* Appends and returns a new empty "contact" element
*/
public org.apache.ws.scout.uddi.Contact addNewContact()
{
synchronized (monitor())
{
check_orphaned();
org.apache.ws.scout.uddi.Contact target = null;
target = (org.apache.ws.scout.uddi.Contact)get_store().add_element_user(CONTACT$0);
return target;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy