/*
 * An XML document type.
 * Localname: ResourcePropertyValueChangeNotification
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.properties.impl;
/**
 * A document containing one ResourcePropertyValueChangeNotification(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class ResourcePropertyValueChangeNotificationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationDocument
{
    
    public ResourcePropertyValueChangeNotificationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RESOURCEPROPERTYVALUECHANGENOTIFICATION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd", "ResourcePropertyValueChangeNotification");
    
    
    /**
     * Gets the "ResourcePropertyValueChangeNotification" element
     */
    public org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType getResourcePropertyValueChangeNotification()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType)get_store().find_element_user(RESOURCEPROPERTYVALUECHANGENOTIFICATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ResourcePropertyValueChangeNotification" element
     */
    public void setResourcePropertyValueChangeNotification(org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType resourcePropertyValueChangeNotification)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType)get_store().find_element_user(RESOURCEPROPERTYVALUECHANGENOTIFICATION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType)get_store().add_element_user(RESOURCEPROPERTYVALUECHANGENOTIFICATION$0);
            }
            target.set(resourcePropertyValueChangeNotification);
        }
    }
    
    /**
     * Appends and returns a new empty "ResourcePropertyValueChangeNotification" element
     */
    public org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType addNewResourcePropertyValueChangeNotification()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.ResourcePropertyValueChangeNotificationType)get_store().add_element_user(RESOURCEPROPERTYVALUECHANGENOTIFICATION$0);
            return target;
        }
    }
}
