net.opengis.ogc.impl.IdDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: _Id
* Namespace: http://www.opengis.net/ogc
* Java type: net.opengis.ogc.IdDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.ogc.impl;
/**
* A document containing one _Id(@http://www.opengis.net/ogc) element.
*
* This is a complex type.
*/
public class IdDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ogc.IdDocument
{
private static final long serialVersionUID = 1L;
public IdDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ID$0 =
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "_Id");
private static final org.apache.xmlbeans.QNameSet ID$1 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] {
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "FeatureId"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "_Id"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "GmlObjectId"),
});
/**
* Gets the "_Id" element
*/
public net.opengis.ogc.AbstractIdType getId()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.AbstractIdType target = null;
target = (net.opengis.ogc.AbstractIdType)get_store().find_element_user(ID$1, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "_Id" element
*/
public void setId(net.opengis.ogc.AbstractIdType id)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.AbstractIdType target = null;
target = (net.opengis.ogc.AbstractIdType)get_store().find_element_user(ID$1, 0);
if (target == null)
{
target = (net.opengis.ogc.AbstractIdType)get_store().add_element_user(ID$0);
}
target.set(id);
}
}
/**
* Appends and returns a new empty "_Id" element
*/
public net.opengis.ogc.AbstractIdType addNewId()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.AbstractIdType target = null;
target = (net.opengis.ogc.AbstractIdType)get_store().add_element_user(ID$0);
return target;
}
}
}