net.opengis.wns.x00.impl.NotificationTargetDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: NotificationTarget
* Namespace: http://www.opengis.net/wns/0.0
* Java type: net.opengis.wns.x00.NotificationTargetDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.wns.x00.impl;
/**
* A document containing one NotificationTarget(@http://www.opengis.net/wns/0.0) element.
*
* This is a complex type.
*/
public class NotificationTargetDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.NotificationTargetDocument
{
private static final long serialVersionUID = 1L;
public NotificationTargetDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NOTIFICATIONTARGET$0 =
new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "NotificationTarget");
/**
* Gets the "NotificationTarget" element
*/
public net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget getNotificationTarget()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget target = null;
target = (net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget)get_store().find_element_user(NOTIFICATIONTARGET$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "NotificationTarget" element
*/
public void setNotificationTarget(net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget notificationTarget)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget target = null;
target = (net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget)get_store().find_element_user(NOTIFICATIONTARGET$0, 0);
if (target == null)
{
target = (net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget)get_store().add_element_user(NOTIFICATIONTARGET$0);
}
target.set(notificationTarget);
}
}
/**
* Appends and returns a new empty "NotificationTarget" element
*/
public net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget addNewNotificationTarget()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget target = null;
target = (net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget)get_store().add_element_user(NOTIFICATIONTARGET$0);
return target;
}
}
/**
* An XML NotificationTarget(@http://www.opengis.net/wns/0.0).
*
* This is a complex type.
*/
public static class NotificationTargetImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.NotificationTargetDocument.NotificationTarget
{
private static final long serialVersionUID = 1L;
public NotificationTargetImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NOTIFICATIONCHANNEL$0 =
new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "NotificationChannel");
private static final javax.xml.namespace.QName NOTIFICATIONFORMAT$2 =
new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "NotificationFormat");
/**
* Gets the "NotificationChannel" element
*/
public net.opengis.wns.x00.NotificationChannelType getNotificationChannel()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationChannelType target = null;
target = (net.opengis.wns.x00.NotificationChannelType)get_store().find_element_user(NOTIFICATIONCHANNEL$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "NotificationChannel" element
*/
public void setNotificationChannel(net.opengis.wns.x00.NotificationChannelType notificationChannel)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationChannelType target = null;
target = (net.opengis.wns.x00.NotificationChannelType)get_store().find_element_user(NOTIFICATIONCHANNEL$0, 0);
if (target == null)
{
target = (net.opengis.wns.x00.NotificationChannelType)get_store().add_element_user(NOTIFICATIONCHANNEL$0);
}
target.set(notificationChannel);
}
}
/**
* Appends and returns a new empty "NotificationChannel" element
*/
public net.opengis.wns.x00.NotificationChannelType addNewNotificationChannel()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationChannelType target = null;
target = (net.opengis.wns.x00.NotificationChannelType)get_store().add_element_user(NOTIFICATIONCHANNEL$0);
return target;
}
}
/**
* Gets the "NotificationFormat" element
*/
public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum getNotificationFormat()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONFORMAT$2, 0);
if (target == null)
{
return null;
}
return (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "NotificationFormat" element
*/
public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat xgetNotificationFormat()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().find_element_user(NOTIFICATIONFORMAT$2, 0);
return target;
}
}
/**
* Sets the "NotificationFormat" element
*/
public void setNotificationFormat(net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum notificationFormat)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONFORMAT$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTIFICATIONFORMAT$2);
}
target.setEnumValue(notificationFormat);
}
}
/**
* Sets (as xml) the "NotificationFormat" element
*/
public void xsetNotificationFormat(net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat notificationFormat)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().find_element_user(NOTIFICATIONFORMAT$2, 0);
if (target == null)
{
target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().add_element_user(NOTIFICATIONFORMAT$2);
}
target.set(notificationFormat);
}
}
}
}