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

aero.aixm.schema.x51.impl.SequenceNumberDocumentImpl Maven / Gradle / Ivy

Go to download

Aeronautical Information Exchange 5.1 - adjusted to support metadata by reference. DNOTAM Event and AIXMBasicMessage schemas included. The AIXM_AbstractGML_ObjectTypes.xsd needed to be adjusted to work around an existing bug (aixm:name AND gml:name as children of the same type). This resulted in the gml:id not set to use=required, so handle validation with good care.

There is a newer version: 2.5.0
Show newest version
/*
 * An XML document type.
 * Localname: sequenceNumber
 * Namespace: http://www.aixm.aero/schema/5.1
 * Java type: aero.aixm.schema.x51.SequenceNumberDocument
 *
 * Automatically generated - do not modify.
 */
package aero.aixm.schema.x51.impl;
/**
 * A document containing one sequenceNumber(@http://www.aixm.aero/schema/5.1) element.
 *
 * This is a complex type.
 */
public class SequenceNumberDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements aero.aixm.schema.x51.SequenceNumberDocument
{
    private static final long serialVersionUID = 1L;
    
    public SequenceNumberDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SEQUENCENUMBER$0 = 
        new javax.xml.namespace.QName("http://www.aixm.aero/schema/5.1", "sequenceNumber");
    
    
    /**
     * Gets the "sequenceNumber" element
     */
    public long getSequenceNumber()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEQUENCENUMBER$0, 0);
            if (target == null)
            {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "sequenceNumber" element
     */
    public aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber xgetSequenceNumber()
    {
        synchronized (monitor())
        {
            check_orphaned();
            aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber target = null;
            target = (aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber)get_store().find_element_user(SEQUENCENUMBER$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "sequenceNumber" element
     */
    public void setSequenceNumber(long sequenceNumber)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEQUENCENUMBER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SEQUENCENUMBER$0);
            }
            target.setLongValue(sequenceNumber);
        }
    }
    
    /**
     * Sets (as xml) the "sequenceNumber" element
     */
    public void xsetSequenceNumber(aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber sequenceNumber)
    {
        synchronized (monitor())
        {
            check_orphaned();
            aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber target = null;
            target = (aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber)get_store().find_element_user(SEQUENCENUMBER$0, 0);
            if (target == null)
            {
                target = (aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber)get_store().add_element_user(SEQUENCENUMBER$0);
            }
            target.set(sequenceNumber);
        }
    }
    /**
     * An XML sequenceNumber(@http://www.aixm.aero/schema/5.1).
     *
     * This is an atomic type that is a restriction of aero.aixm.schema.x51.SequenceNumberDocument$SequenceNumber.
     */
    public static class SequenceNumberImpl extends org.apache.xmlbeans.impl.values.JavaLongHolderEx implements aero.aixm.schema.x51.SequenceNumberDocument.SequenceNumber
    {
        private static final long serialVersionUID = 1L;
        
        public SequenceNumberImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType, false);
        }
        
        protected SequenceNumberImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
        {
            super(sType, b);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy