net.opengis.sps.x10.impl.ContentsDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Contents
* Namespace: http://www.opengis.net/sps/1.0
* Java type: net.opengis.sps.x10.ContentsDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x10.impl;
/**
* A document containing one Contents(@http://www.opengis.net/sps/1.0) element.
*
* This is a complex type.
*/
public class ContentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.ContentsDocument
{
private static final long serialVersionUID = 1L;
public ContentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONTENTS$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "Contents");
/**
* Gets the "Contents" element
*/
public net.opengis.sps.x10.SPSContentsType getContents()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SPSContentsType target = null;
target = (net.opengis.sps.x10.SPSContentsType)get_store().find_element_user(CONTENTS$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Contents" element
*/
public void setContents(net.opengis.sps.x10.SPSContentsType contents)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SPSContentsType target = null;
target = (net.opengis.sps.x10.SPSContentsType)get_store().find_element_user(CONTENTS$0, 0);
if (target == null)
{
target = (net.opengis.sps.x10.SPSContentsType)get_store().add_element_user(CONTENTS$0);
}
target.set(contents);
}
}
/**
* Appends and returns a new empty "Contents" element
*/
public net.opengis.sps.x10.SPSContentsType addNewContents()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SPSContentsType target = null;
target = (net.opengis.sps.x10.SPSContentsType)get_store().add_element_user(CONTENTS$0);
return target;
}
}
}