/*
 * An XML document type.
 * Localname: SignatureProperty
 * Namespace: http://www.w3.org/2000/09/xmldsig#
 * Java type: org.w3.x2000.x09.xmldsig.SignaturePropertyDocument
 *
 * Automatically generated - do not modify.
 */
package org.w3.x2000.x09.xmldsig.impl;
/**
 * A document containing one SignatureProperty(@http://www.w3.org/2000/09/xmldsig#) element.
 *
 * This is a complex type.
 */
public class SignaturePropertyDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x2000.x09.xmldsig.SignaturePropertyDocument
{
    
    public SignaturePropertyDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SIGNATUREPROPERTY$0 = 
        new javax.xml.namespace.QName("http://www.w3.org/2000/09/xmldsig#", "SignatureProperty");
    
    
    /**
     * Gets the "SignatureProperty" element
     */
    public org.w3.x2000.x09.xmldsig.SignaturePropertyType getSignatureProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.SignaturePropertyType target = null;
            target = (org.w3.x2000.x09.xmldsig.SignaturePropertyType)get_store().find_element_user(SIGNATUREPROPERTY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SignatureProperty" element
     */
    public void setSignatureProperty(org.w3.x2000.x09.xmldsig.SignaturePropertyType signatureProperty)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.SignaturePropertyType target = null;
            target = (org.w3.x2000.x09.xmldsig.SignaturePropertyType)get_store().find_element_user(SIGNATUREPROPERTY$0, 0);
            if (target == null)
            {
                target = (org.w3.x2000.x09.xmldsig.SignaturePropertyType)get_store().add_element_user(SIGNATUREPROPERTY$0);
            }
            target.set(signatureProperty);
        }
    }
    
    /**
     * Appends and returns a new empty "SignatureProperty" element
     */
    public org.w3.x2000.x09.xmldsig.SignaturePropertyType addNewSignatureProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.SignaturePropertyType target = null;
            target = (org.w3.x2000.x09.xmldsig.SignaturePropertyType)get_store().add_element_user(SIGNATUREPROPERTY$0);
            return target;
        }
    }
}
