All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.apex.RunTestsRequest Maven / Gradle / Ivy

There is a newer version: 62.0.0
Show newest version
package com.sforce.soap.apex;

/**
 * This is a generated class for the SObject Enterprise API.
 * Do not edit this file, as your changes will be lost.
 */
public class RunTestsRequest implements com.sforce.ws.bind.XMLizable {

    /**
     * Constructor
     */
    public RunTestsRequest() {}

    /* Cache the typeInfo instead of declaring static fields throughout*/
    private transient java.util.Map typeInfoCache = new java.util.HashMap();
    private com.sforce.ws.bind.TypeInfo _lookupTypeInfo(String fieldName, String namespace, String name, String typeNS, String type, int minOcc, int maxOcc, boolean elementForm) {
      com.sforce.ws.bind.TypeInfo typeInfo = typeInfoCache.get(fieldName);
      if (typeInfo == null) {
        typeInfo = new com.sforce.ws.bind.TypeInfo(namespace, name, typeNS, type, minOcc, maxOcc, elementForm);
        typeInfoCache.put(fieldName, typeInfo);
      }
      return typeInfo;
    }

    /**
     * element : allTests of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean allTests__is_set = false;

    private boolean allTests;

    public boolean getAllTests() {
      return allTests;
    }

    public boolean isAllTests() {
      return allTests;
    }

    public void setAllTests(boolean allTests) {
      this.allTests = allTests;
      allTests__is_set = true;
    }

    protected void setAllTests(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("allTests", "http://soap.sforce.com/2006/08/apex","allTests","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setAllTests(__typeMapper.readBoolean(__in, _lookupTypeInfo("allTests", "http://soap.sforce.com/2006/08/apex","allTests","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldAllTests(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("allTests", "http://soap.sforce.com/2006/08/apex","allTests","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), allTests, allTests__is_set);
    }

    /**
     * element : classes of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String[]
     */
    private boolean classes__is_set = false;

    private java.lang.String[] classes = new java.lang.String[0];

    public java.lang.String[] getClasses() {
      return classes;
    }

    public void setClasses(java.lang.String[] classes) {
      this.classes = classes;
      classes__is_set = true;
    }

    protected void setClasses(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("classes", "http://soap.sforce.com/2006/08/apex","classes","http://www.w3.org/2001/XMLSchema","string",0,-1,true))) {
        setClasses((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("classes", "http://soap.sforce.com/2006/08/apex","classes","http://www.w3.org/2001/XMLSchema","string",0,-1,true), java.lang.String[].class));
      }
    }

    private void writeFieldClasses(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("classes", "http://soap.sforce.com/2006/08/apex","classes","http://www.w3.org/2001/XMLSchema","string",0,-1,true), classes, classes__is_set);
    }

    /**
     * element : maxFailedTests of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private boolean maxFailedTests__is_set = false;

    private int maxFailedTests;

    public int getMaxFailedTests() {
      return maxFailedTests;
    }

    public void setMaxFailedTests(int maxFailedTests) {
      this.maxFailedTests = maxFailedTests;
      maxFailedTests__is_set = true;
    }

    protected void setMaxFailedTests(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("maxFailedTests", "http://soap.sforce.com/2006/08/apex","maxFailedTests","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setMaxFailedTests((int)__typeMapper.readInt(__in, _lookupTypeInfo("maxFailedTests", "http://soap.sforce.com/2006/08/apex","maxFailedTests","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

    private void writeFieldMaxFailedTests(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("maxFailedTests", "http://soap.sforce.com/2006/08/apex","maxFailedTests","http://www.w3.org/2001/XMLSchema","int",0,1,true), maxFailedTests, maxFailedTests__is_set);
    }

    /**
     * element : namespace of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean namespace__is_set = false;

    private java.lang.String namespace;

    public java.lang.String getNamespace() {
      return namespace;
    }

    public void setNamespace(java.lang.String namespace) {
      this.namespace = namespace;
      namespace__is_set = true;
    }

    protected void setNamespace(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("namespace", "http://soap.sforce.com/2006/08/apex","namespace","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setNamespace(__typeMapper.readString(__in, _lookupTypeInfo("namespace", "http://soap.sforce.com/2006/08/apex","namespace","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldNamespace(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("namespace", "http://soap.sforce.com/2006/08/apex","namespace","http://www.w3.org/2001/XMLSchema","string",1,1,true), namespace, namespace__is_set);
    }

    /**
     * element : packages of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String[]
     */
    private boolean packages__is_set = false;

    private java.lang.String[] packages = new java.lang.String[0];

    public java.lang.String[] getPackages() {
      return packages;
    }

    public void setPackages(java.lang.String[] packages) {
      this.packages = packages;
      packages__is_set = true;
    }

    protected void setPackages(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("packages", "http://soap.sforce.com/2006/08/apex","packages","http://www.w3.org/2001/XMLSchema","string",0,-1,true))) {
        setPackages((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("packages", "http://soap.sforce.com/2006/08/apex","packages","http://www.w3.org/2001/XMLSchema","string",0,-1,true), java.lang.String[].class));
      }
    }

    private void writeFieldPackages(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("packages", "http://soap.sforce.com/2006/08/apex","packages","http://www.w3.org/2001/XMLSchema","string",0,-1,true), packages, packages__is_set);
    }

    /**
     * element : skipCodeCoverage of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean skipCodeCoverage__is_set = false;

    private boolean skipCodeCoverage;

    public boolean getSkipCodeCoverage() {
      return skipCodeCoverage;
    }

    public boolean isSkipCodeCoverage() {
      return skipCodeCoverage;
    }

    public void setSkipCodeCoverage(boolean skipCodeCoverage) {
      this.skipCodeCoverage = skipCodeCoverage;
      skipCodeCoverage__is_set = true;
    }

    protected void setSkipCodeCoverage(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("skipCodeCoverage", "http://soap.sforce.com/2006/08/apex","skipCodeCoverage","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setSkipCodeCoverage(__typeMapper.readBoolean(__in, _lookupTypeInfo("skipCodeCoverage", "http://soap.sforce.com/2006/08/apex","skipCodeCoverage","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

    private void writeFieldSkipCodeCoverage(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("skipCodeCoverage", "http://soap.sforce.com/2006/08/apex","skipCodeCoverage","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), skipCodeCoverage, skipCodeCoverage__is_set);
    }

    /**
     * element : tests of type {http://soap.sforce.com/2006/08/apex}TestsNode
     * java type: com.sforce.soap.apex.TestsNode[]
     */
    private boolean tests__is_set = false;

    private com.sforce.soap.apex.TestsNode[] tests = new com.sforce.soap.apex.TestsNode[0];

    public com.sforce.soap.apex.TestsNode[] getTests() {
      return tests;
    }

    public void setTests(com.sforce.soap.apex.TestsNode[] tests) {
      this.tests = tests;
      tests__is_set = true;
    }

    protected void setTests(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("tests", "http://soap.sforce.com/2006/08/apex","tests","http://soap.sforce.com/2006/08/apex","TestsNode",0,-1,true))) {
        setTests((com.sforce.soap.apex.TestsNode[])__typeMapper.readObject(__in, _lookupTypeInfo("tests", "http://soap.sforce.com/2006/08/apex","tests","http://soap.sforce.com/2006/08/apex","TestsNode",0,-1,true), com.sforce.soap.apex.TestsNode[].class));
      }
    }

    private void writeFieldTests(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("tests", "http://soap.sforce.com/2006/08/apex","tests","http://soap.sforce.com/2006/08/apex","TestsNode",0,-1,true), tests, tests__is_set);
    }

    /**
     */
    @Override
    public void write(javax.xml.namespace.QName __element,
        com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
        throws java.io.IOException {
      __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
      writeFields(__out, __typeMapper);
      __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
    }

    protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper)
         throws java.io.IOException {
       writeFields1(__out, __typeMapper);
    }

    @Override
    public void load(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __typeMapper.consumeStartTag(__in);
      loadFields(__in, __typeMapper);
      __typeMapper.consumeEndTag(__in);
    }

    protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[RunTestsRequest ");
      toString1(sb);

      sb.append("]\n");
      return sb.toString();
    }

    private void toStringHelper(StringBuilder sb, String name, Object value) {
      sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n");
    }

    private void writeFields1(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      writeFieldAllTests(__out, __typeMapper);
      writeFieldClasses(__out, __typeMapper);
      writeFieldMaxFailedTests(__out, __typeMapper);
      writeFieldNamespace(__out, __typeMapper);
      writeFieldPackages(__out, __typeMapper);
      writeFieldSkipCodeCoverage(__out, __typeMapper);
      writeFieldTests(__out, __typeMapper);
    }

    private void loadFields1(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      setAllTests(__in, __typeMapper);
      setClasses(__in, __typeMapper);
      setMaxFailedTests(__in, __typeMapper);
      setNamespace(__in, __typeMapper);
      setPackages(__in, __typeMapper);
      setSkipCodeCoverage(__in, __typeMapper);
      setTests(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "allTests", allTests);
      toStringHelper(sb, "classes", classes);
      toStringHelper(sb, "maxFailedTests", maxFailedTests);
      toStringHelper(sb, "namespace", namespace);
      toStringHelper(sb, "packages", packages);
      toStringHelper(sb, "skipCodeCoverage", skipCodeCoverage);
      toStringHelper(sb, "tests", tests);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy