net.opengis.wmts.x10.impl.TileMatrixSetDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: TileMatrixSet
* Namespace: http://www.opengis.net/wmts/1.0
* Java type: net.opengis.wmts.x10.TileMatrixSetDocument
*
* 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 TileMatrixSet(@http://www.opengis.net/wmts/1.0) element.
*
* This is a complex type.
*/
public class TileMatrixSetDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wmts.x10.TileMatrixSetDocument {
private static final long serialVersionUID = 1L;
public TileMatrixSetDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/wmts/1.0", "TileMatrixSet"),
};
/**
* Gets the "TileMatrixSet" element
*/
@Override
public net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet getTileMatrixSet() {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet target = null;
target = (net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "TileMatrixSet" element
*/
@Override
public void setTileMatrixSet(net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet tileMatrixSet) {
generatedSetterHelperImpl(tileMatrixSet, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "TileMatrixSet" element
*/
@Override
public net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet addNewTileMatrixSet() {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet target = null;
target = (net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* An XML TileMatrixSet(@http://www.opengis.net/wmts/1.0).
*
* This is a complex type.
*/
public static class TileMatrixSetImpl extends net.opengis.ows.x11.impl.DescriptionTypeImpl implements net.opengis.wmts.x10.TileMatrixSetDocument.TileMatrixSet {
private static final long serialVersionUID = 1L;
public TileMatrixSetImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/ows/1.1", "Identifier"),
new QName("http://www.opengis.net/ows/1.1", "BoundingBox"),
new QName("http://www.opengis.net/ows/1.1", "SupportedCRS"),
new QName("http://www.opengis.net/wmts/1.0", "WellKnownScaleSet"),
new QName("http://www.opengis.net/wmts/1.0", "TileMatrix"),
};
private static final QNameSet[] PROPERTY_QSET = {
QNameSet.forArray( new QName[] {
new QName("http://www.opengis.net/ows/1.1", "WGS84BoundingBox"),
new QName("http://www.opengis.net/ows/1.1", "BoundingBox"),
}),
};
/**
* Gets the "Identifier" element
*/
@Override
public net.opengis.ows.x11.CodeType getIdentifier() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.CodeType target = null;
target = (net.opengis.ows.x11.CodeType)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "Identifier" element
*/
@Override
public void setIdentifier(net.opengis.ows.x11.CodeType identifier) {
generatedSetterHelperImpl(identifier, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "Identifier" element
*/
@Override
public net.opengis.ows.x11.CodeType addNewIdentifier() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.CodeType target = null;
target = (net.opengis.ows.x11.CodeType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Gets the "BoundingBox" element
*/
@Override
public net.opengis.ows.x11.BoundingBoxType getBoundingBox() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().find_element_user(PROPERTY_QSET[0], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "BoundingBox" element
*/
@Override
public boolean isSetBoundingBox() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QSET[0]) != 0;
}
}
/**
* Sets the "BoundingBox" element
*/
@Override
public void setBoundingBox(net.opengis.ows.x11.BoundingBoxType boundingBox) {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().find_element_user(PROPERTY_QSET[0], 0);
if (target == null) {
target = (net.opengis.ows.x11.BoundingBoxType)get_store().add_element_user(PROPERTY_QNAME[1]);
}
target.set(boundingBox);
}
}
/**
* Appends and returns a new empty "BoundingBox" element
*/
@Override
public net.opengis.ows.x11.BoundingBoxType addNewBoundingBox() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().add_element_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Unsets the "BoundingBox" element
*/
@Override
public void unsetBoundingBox() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QSET[0], 0);
}
}
/**
* Gets the "SupportedCRS" element
*/
@Override
public java.lang.String getSupportedCRS() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "SupportedCRS" element
*/
@Override
public org.apache.xmlbeans.XmlAnyURI xgetSupportedCRS() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(PROPERTY_QNAME[2], 0);
return target;
}
}
/**
* Sets the "SupportedCRS" element
*/
@Override
public void setSupportedCRS(java.lang.String supportedCRS) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[2]);
}
target.setStringValue(supportedCRS);
}
}
/**
* Sets (as xml) the "SupportedCRS" element
*/
@Override
public void xsetSupportedCRS(org.apache.xmlbeans.XmlAnyURI supportedCRS) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(PROPERTY_QNAME[2], 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(PROPERTY_QNAME[2]);
}
target.set(supportedCRS);
}
}
/**
* Gets the "WellKnownScaleSet" element
*/
@Override
public java.lang.String getWellKnownScaleSet() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "WellKnownScaleSet" element
*/
@Override
public org.apache.xmlbeans.XmlAnyURI xgetWellKnownScaleSet() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(PROPERTY_QNAME[3], 0);
return target;
}
}
/**
* True if has "WellKnownScaleSet" element
*/
@Override
public boolean isSetWellKnownScaleSet() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[3]) != 0;
}
}
/**
* Sets the "WellKnownScaleSet" element
*/
@Override
public void setWellKnownScaleSet(java.lang.String wellKnownScaleSet) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[3]);
}
target.setStringValue(wellKnownScaleSet);
}
}
/**
* Sets (as xml) the "WellKnownScaleSet" element
*/
@Override
public void xsetWellKnownScaleSet(org.apache.xmlbeans.XmlAnyURI wellKnownScaleSet) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(PROPERTY_QNAME[3], 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(PROPERTY_QNAME[3]);
}
target.set(wellKnownScaleSet);
}
}
/**
* Unsets the "WellKnownScaleSet" element
*/
@Override
public void unsetWellKnownScaleSet() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[3], 0);
}
}
/**
* Gets a List of "TileMatrix" elements
*/
@Override
public java.util.List getTileMatrixList() {
synchronized (monitor()) {
check_orphaned();
return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
this::getTileMatrixArray,
this::setTileMatrixArray,
this::insertNewTileMatrix,
this::removeTileMatrix,
this::sizeOfTileMatrixArray
);
}
}
/**
* Gets array of all "TileMatrix" elements
*/
@Override
public net.opengis.wmts.x10.TileMatrixDocument.TileMatrix[] getTileMatrixArray() {
return getXmlObjectArray(PROPERTY_QNAME[4], new net.opengis.wmts.x10.TileMatrixDocument.TileMatrix[0]);
}
/**
* Gets ith "TileMatrix" element
*/
@Override
public net.opengis.wmts.x10.TileMatrixDocument.TileMatrix getTileMatrixArray(int i) {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.TileMatrixDocument.TileMatrix target = null;
target = (net.opengis.wmts.x10.TileMatrixDocument.TileMatrix)get_store().find_element_user(PROPERTY_QNAME[4], i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "TileMatrix" element
*/
@Override
public int sizeOfTileMatrixArray() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[4]);
}
}
/**
* Sets array of all "TileMatrix" element WARNING: This method is not atomicaly synchronized.
*/
@Override
public void setTileMatrixArray(net.opengis.wmts.x10.TileMatrixDocument.TileMatrix[] tileMatrixArray) {
check_orphaned();
arraySetterHelper(tileMatrixArray, PROPERTY_QNAME[4]);
}
/**
* Sets ith "TileMatrix" element
*/
@Override
public void setTileMatrixArray(int i, net.opengis.wmts.x10.TileMatrixDocument.TileMatrix tileMatrix) {
generatedSetterHelperImpl(tileMatrix, PROPERTY_QNAME[4], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "TileMatrix" element
*/
@Override
public net.opengis.wmts.x10.TileMatrixDocument.TileMatrix insertNewTileMatrix(int i) {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.TileMatrixDocument.TileMatrix target = null;
target = (net.opengis.wmts.x10.TileMatrixDocument.TileMatrix)get_store().insert_element_user(PROPERTY_QNAME[4], i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "TileMatrix" element
*/
@Override
public net.opengis.wmts.x10.TileMatrixDocument.TileMatrix addNewTileMatrix() {
synchronized (monitor()) {
check_orphaned();
net.opengis.wmts.x10.TileMatrixDocument.TileMatrix target = null;
target = (net.opengis.wmts.x10.TileMatrixDocument.TileMatrix)get_store().add_element_user(PROPERTY_QNAME[4]);
return target;
}
}
/**
* Removes the ith "TileMatrix" element
*/
@Override
public void removeTileMatrix(int i) {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[4], i);
}
}
}
}