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