/*
 * XML Type:  SequenceRefType
 * Namespace: http://schemas.xmlsoap.org/ws/2004/03/rm
 * Java type: org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.ws.x2004.x03.rm.impl;

/**
 * An XML SequenceRefType(@http://schemas.xmlsoap.org/ws/2004/03/rm).
 * <p/>
 * This is a complex type.
 */
public class SequenceRefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType {

    public SequenceRefTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final javax.xml.namespace.QName IDENTIFIER$0 =
            new javax.xml.namespace.QName("", "Identifier");
    private static final javax.xml.namespace.QName MATCH$2 =
            new javax.xml.namespace.QName("", "Match");


    /**
     * Gets the "Identifier" attribute
     */
    public java.lang.String getIdentifier() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(IDENTIFIER$0);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "Identifier" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetIdentifier() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(IDENTIFIER$0);
            return target;
        }
    }

    /**
     * Sets the "Identifier" attribute
     */
    public void setIdentifier(java.lang.String identifier) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(IDENTIFIER$0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(IDENTIFIER$0);
            }
            target.setStringValue(identifier);
        }
    }

    /**
     * Sets (as xml) the "Identifier" attribute
     */
    public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(IDENTIFIER$0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlAnyURI) get_store().add_attribute_user(IDENTIFIER$0);
            }
            target.set(identifier);
        }
    }

    /**
     * Gets the "Match" attribute
     */
    public javax.xml.namespace.QName getMatch() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MATCH$2);
            if (target == null) {
                return null;
            }
            return target.getQNameValue();
        }
    }

    /**
     * Gets (as xml) the "Match" attribute
     */
    public org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType xgetMatch() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType) get_store().find_attribute_user(MATCH$2);
            return target;
        }
    }

    /**
     * True if has "Match" attribute
     */
    public boolean isSetMatch() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().find_attribute_user(MATCH$2) != null;
        }
    }

    /**
     * Sets the "Match" attribute
     */
    public void setMatch(javax.xml.namespace.QName match) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MATCH$2);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(MATCH$2);
            }
            target.setQNameValue(match);
        }
    }

    /**
     * Sets (as xml) the "Match" attribute
     */
    public void xsetMatch(org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType match) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType) get_store().find_attribute_user(MATCH$2);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.MatchChoiceType) get_store().add_attribute_user(MATCH$2);
            }
            target.set(match);
        }
    }

    /**
     * Unsets the "Match" attribute
     */
    public void unsetMatch() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(MATCH$2);
        }
    }
}
