net.opengis.wmts.x10.impl.LayerDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: Layer
* Namespace: http://www.opengis.net/wmts/1.0
* Java type: net.opengis.wmts.x10.LayerDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.wmts.x10.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;
/**
* A document containing one Layer(@http://www.opengis.net/wmts/1.0) element.
*
* This is a complex type.
*/
public class LayerDocumentImpl extends net.opengis.ows.x11.impl.DatasetDescriptionSummaryDocumentImpl implements net.opengis.wmts.x10.LayerDocument {
private static final long serialVersionUID = 1L;
public LayerDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/wmts/1.0", "Layer"),
};
/**
* Gets the "Layer" element
*/
@Override
public net.opengis.wmts.x10.LayerType getLayer() {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.LayerType target = null;
target = (net.opengis.wmts.x10.LayerType)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "Layer" element
*/
@Override
public void setLayer(net.opengis.wmts.x10.LayerType layer) {
generatedSetterHelperImpl(layer, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "Layer" element
*/
@Override
public net.opengis.wmts.x10.LayerType addNewLayer() {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.LayerType target = null;
target = (net.opengis.wmts.x10.LayerType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
}