All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.isotc211.x2005.gmi.impl.MIContextCodeDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: MI_ContextCode
 * Namespace: http://www.isotc211.org/2005/gmi
 * Java type: org.isotc211.x2005.gmi.MIContextCodeDocument
 *
 * Automatically generated - do not modify.
 */
package org.isotc211.x2005.gmi.impl;
/**
 * A document containing one MI_ContextCode(@http://www.isotc211.org/2005/gmi) element.
 *
 * This is a complex type.
 */
public class MIContextCodeDocumentImpl extends org.isotc211.x2005.gco.impl.CharacterStringDocumentImpl implements org.isotc211.x2005.gmi.MIContextCodeDocument
{
    private static final long serialVersionUID = 1L;
    
    public MIContextCodeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MICONTEXTCODE$0 = 
        new javax.xml.namespace.QName("http://www.isotc211.org/2005/gmi", "MI_ContextCode");
    
    
    /**
     * Gets the "MI_ContextCode" element
     */
    public org.isotc211.x2005.gco.CodeListValueType getMIContextCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.isotc211.x2005.gco.CodeListValueType target = null;
            target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MICONTEXTCODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MI_ContextCode" element
     */
    public void setMIContextCode(org.isotc211.x2005.gco.CodeListValueType miContextCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.isotc211.x2005.gco.CodeListValueType target = null;
            target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MICONTEXTCODE$0, 0);
            if (target == null)
            {
                target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MICONTEXTCODE$0);
            }
            target.set(miContextCode);
        }
    }
    
    /**
     * Appends and returns a new empty "MI_ContextCode" element
     */
    public org.isotc211.x2005.gco.CodeListValueType addNewMIContextCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.isotc211.x2005.gco.CodeListValueType target = null;
            target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MICONTEXTCODE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy