net.opengis.sps.x10.impl.GetCapabilitiesDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: GetCapabilities
* Namespace: http://www.opengis.net/sps/1.0
* Java type: net.opengis.sps.x10.GetCapabilitiesDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x10.impl;
/**
* A document containing one GetCapabilities(@http://www.opengis.net/sps/1.0) element.
*
* This is a complex type.
*/
public class GetCapabilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.GetCapabilitiesDocument
{
private static final long serialVersionUID = 1L;
public GetCapabilitiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName GETCAPABILITIES$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "GetCapabilities");
/**
* Gets the "GetCapabilities" element
*/
public net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities getGetCapabilities()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities target = null;
target = (net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "GetCapabilities" element
*/
public void setGetCapabilities(net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities getCapabilities)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities target = null;
target = (net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
if (target == null)
{
target = (net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
}
target.set(getCapabilities);
}
}
/**
* Appends and returns a new empty "GetCapabilities" element
*/
public net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities addNewGetCapabilities()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities target = null;
target = (net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
return target;
}
}
/**
* An XML GetCapabilities(@http://www.opengis.net/sps/1.0).
*
* This is a complex type.
*/
public static class GetCapabilitiesImpl extends net.opengis.ows.impl.GetCapabilitiesTypeImpl implements net.opengis.sps.x10.GetCapabilitiesDocument.GetCapabilities
{
private static final long serialVersionUID = 1L;
public GetCapabilitiesImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SERVICE$0 =
new javax.xml.namespace.QName("", "service");
/**
* Gets the "service" attribute
*/
public java.lang.String getService()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERVICE$0);
}
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "service" attribute
*/
public net.opengis.ows.ServiceType xgetService()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ows.ServiceType target = null;
target = (net.opengis.ows.ServiceType)get_store().find_attribute_user(SERVICE$0);
if (target == null)
{
target = (net.opengis.ows.ServiceType)get_default_attribute_value(SERVICE$0);
}
return target;
}
}
/**
* Sets the "service" attribute
*/
public void setService(java.lang.String service)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICE$0);
}
target.setStringValue(service);
}
}
/**
* Sets (as xml) the "service" attribute
*/
public void xsetService(net.opengis.ows.ServiceType service)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ows.ServiceType target = null;
target = (net.opengis.ows.ServiceType)get_store().find_attribute_user(SERVICE$0);
if (target == null)
{
target = (net.opengis.ows.ServiceType)get_store().add_attribute_user(SERVICE$0);
}
target.set(service);
}
}
}
}