// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.

 /*
 * This file was automatically generated by com.microsoft.tfs.core.ws.generator.Generator
 * from the /complexType.vm template.
 */
package ms.wss;

import com.microsoft.tfs.core.ws.runtime.*;
import com.microsoft.tfs.core.ws.runtime.serialization.*;
import com.microsoft.tfs.core.ws.runtime.types.*;
import com.microsoft.tfs.core.ws.runtime.util.*;
import com.microsoft.tfs.core.ws.runtime.xml.*;

import ms.wss._ListsSoap_UndoCheckOut;

import java.lang.String;

import java.util.ArrayList;
import java.util.List;

import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;

/**
 * Automatically generated complex type class.
 */
public class _ListsSoap_UndoCheckOut
    implements ElementSerializable
{
    // No attributes    

    // Elements
    protected String pageUrl;

    public _ListsSoap_UndoCheckOut()
    {
        super();
    }

    public _ListsSoap_UndoCheckOut(final String pageUrl)
    {
        // TODO : Call super() instead of setting all fields directly?
        setPageUrl(pageUrl);
    }

    public String getPageUrl()
    {
        return this.pageUrl;
    }

    public void setPageUrl(String value)
    {
        this.pageUrl = value;
    }

    public void writeAsElement(
        final XMLStreamWriter writer,
        final String name)
        throws XMLStreamException
    {
        writer.writeStartElement(name);

        // Elements
        XMLStreamWriterHelper.writeElement(
            writer,
            "pageUrl",
            this.pageUrl);

        writer.writeEndElement();
    }
}
