text: // 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.tfs.versioncontrol.clientservices._03;
  
  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.tfs.versioncontrol.clientservices._03._Repository5Soap_CheckPendingChanges;
  
  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 _Repository5Soap_CheckPendingChanges
      implements ElementSerializable
  {
      // No attributes    
  
      // Elements
      protected String workspaceName;
      protected String ownerName;
      protected String[] serverItems;
      protected int maxClientPathLength;
  
      public _Repository5Soap_CheckPendingChanges()
      {
          super();
      }
  
      public _Repository5Soap_CheckPendingChanges(
          final String workspaceName,
          final String ownerName,
          final String[] serverItems,
          final int maxClientPathLength)
      {
          // TODO : Call super() instead of setting all fields directly?
          setWorkspaceName(workspaceName);
          setOwnerName(ownerName);
          setServerItems(serverItems);
          setMaxClientPathLength(maxClientPathLength);
      }
  
      public String getWorkspaceName()
      {
          return this.workspaceName;
      }
  
      public void setWorkspaceName(String value)
      {
          this.workspaceName = value;
      }
  
      public String getOwnerName()
      {
          return this.ownerName;
      }
  
      public void setOwnerName(String value)
      {
          this.ownerName = value;
      }
  
      public String[] getServerItems()
      {
          return this.serverItems;
      }
  
      public void setServerItems(String[] value)
      {
          this.serverItems = value;
      }
  
      public int getMaxClientPathLength()
      {
          return this.maxClientPathLength;
      }
  
      public void setMaxClientPathLength(int value)
      {
          this.maxClientPathLength = value;
      }
  
      public void writeAsElement(
          final XMLStreamWriter writer,
          final String name)
          throws XMLStreamException
      {
          writer.writeStartElement(name);
  
          // Elements
          XMLStreamWriterHelper.writeElement(
              writer,
              "workspaceName",
              this.workspaceName);
          XMLStreamWriterHelper.writeElement(
              writer,
              "ownerName",
              this.ownerName);
  
          if (this.serverItems != null)
          {
              /*
               * The element type is an array.
               */
              writer.writeStartElement("serverItems");
  
              for (int iterator0 = 0; iterator0 < this.serverItems.length; iterator0++)
              {
                  XMLStreamWriterHelper.writeElement(
                      writer,
                      "string",
                      this.serverItems[iterator0]);
              }
  
              writer.writeEndElement();
          }
  
          XMLStreamWriterHelper.writeElement(
              writer,
              "maxClientPathLength",
              this.maxClientPathLength);
  
          writer.writeEndElement();
      }
  }
  