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

io.github.isotes.vs.model.impl.MessageDocumentImpl Maven / Gradle / Ivy

Go to download

Generated XMLBeans Java classes for the XML schema of MSBuild project files

The newest version!
/*
 * An XML document type.
 * Localname: Message
 * Namespace: http://schemas.microsoft.com/developer/msbuild/2003
 * Java type: io.github.isotes.vs.model.MessageDocument
 *
 * Automatically generated - do not modify.
 */
package io.github.isotes.vs.model.impl;
/**
 * A document containing one Message(@http://schemas.microsoft.com/developer/msbuild/2003) element.
 *
 * This is a complex type.
 */
public class MessageDocumentImpl extends io.github.isotes.vs.model.impl.TaskDocumentImpl implements io.github.isotes.vs.model.MessageDocument
{
    private static final long serialVersionUID = 1L;
    
    public MessageDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MESSAGE$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Message");
    
    
    /**
     * Gets the "Message" element
     */
    public io.github.isotes.vs.model.MessageDocument.Message getMessage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            io.github.isotes.vs.model.MessageDocument.Message target = null;
            target = (io.github.isotes.vs.model.MessageDocument.Message)get_store().find_element_user(MESSAGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Message" element
     */
    public void setMessage(io.github.isotes.vs.model.MessageDocument.Message message)
    {
        generatedSetterHelperImpl(message, MESSAGE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "Message" element
     */
    public io.github.isotes.vs.model.MessageDocument.Message addNewMessage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            io.github.isotes.vs.model.MessageDocument.Message target = null;
            target = (io.github.isotes.vs.model.MessageDocument.Message)get_store().add_element_user(MESSAGE$0);
            return target;
        }
    }
    /**
     * An XML Message(@http://schemas.microsoft.com/developer/msbuild/2003).
     *
     * This is a complex type.
     */
    public static class MessageImpl extends io.github.isotes.vs.model.impl.TaskTypeImpl implements io.github.isotes.vs.model.MessageDocument.Message
    {
        private static final long serialVersionUID = 1L;
        
        public MessageImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName IMPORTANCE$0 = 
            new javax.xml.namespace.QName("", "Importance");
        private static final javax.xml.namespace.QName TEXT$2 = 
            new javax.xml.namespace.QName("", "Text");
        
        
        /**
         * Gets the "Importance" attribute
         */
        public java.lang.String getImportance()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IMPORTANCE$0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Importance" attribute
         */
        public io.github.isotes.vs.model.Importance xgetImportance()
        {
            synchronized (monitor())
            {
                check_orphaned();
                io.github.isotes.vs.model.Importance target = null;
                target = (io.github.isotes.vs.model.Importance)get_store().find_attribute_user(IMPORTANCE$0);
                return target;
            }
        }
        
        /**
         * True if has "Importance" attribute
         */
        public boolean isSetImportance()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(IMPORTANCE$0) != null;
            }
        }
        
        /**
         * Sets the "Importance" attribute
         */
        public void setImportance(java.lang.String importance)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IMPORTANCE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(IMPORTANCE$0);
                }
                target.setStringValue(importance);
            }
        }
        
        /**
         * Sets (as xml) the "Importance" attribute
         */
        public void xsetImportance(io.github.isotes.vs.model.Importance importance)
        {
            synchronized (monitor())
            {
                check_orphaned();
                io.github.isotes.vs.model.Importance target = null;
                target = (io.github.isotes.vs.model.Importance)get_store().find_attribute_user(IMPORTANCE$0);
                if (target == null)
                {
                    target = (io.github.isotes.vs.model.Importance)get_store().add_attribute_user(IMPORTANCE$0);
                }
                target.set(importance);
            }
        }
        
        /**
         * Unsets the "Importance" attribute
         */
        public void unsetImportance()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(IMPORTANCE$0);
            }
        }
        
        /**
         * Gets the "Text" attribute
         */
        public org.apache.xmlbeans.XmlAnySimpleType getText()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnySimpleType target = null;
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(TEXT$2);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "Text" attribute
         */
        public boolean isSetText()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TEXT$2) != null;
            }
        }
        
        /**
         * Sets the "Text" attribute
         */
        public void setText(org.apache.xmlbeans.XmlAnySimpleType text)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnySimpleType target = null;
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(TEXT$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(TEXT$2);
                }
                target.set(text);
            }
        }
        
        /**
         * Appends and returns a new empty "Text" attribute
         */
        public org.apache.xmlbeans.XmlAnySimpleType addNewText()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnySimpleType target = null;
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(TEXT$2);
                return target;
            }
        }
        
        /**
         * Unsets the "Text" attribute
         */
        public void unsetText()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TEXT$2);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy