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

com.sforce.soap.tooling.ApexClass Maven / Gradle / Ivy

package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class ApexClass extends com.sforce.soap.tooling.SObject {

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

    /**
     * element : ApiVersion of type {http://www.w3.org/2001/XMLSchema}double
     * java type: java.lang.Double
     */
    private static final com.sforce.ws.bind.TypeInfo ApiVersion__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","ApiVersion","http://www.w3.org/2001/XMLSchema","double",0,1,true);

    private boolean ApiVersion__is_set = false;

    private java.lang.Double ApiVersion;

    public java.lang.Double getApiVersion() {
      return ApiVersion;
    }

    public void setApiVersion(java.lang.Double ApiVersion) {
      this.ApiVersion = ApiVersion;
      ApiVersion__is_set = true;
    }

    /**
     * element : Body of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo Body__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","Body","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean Body__is_set = false;

    private java.lang.String Body;

    public java.lang.String getBody() {
      return Body;
    }

    public void setBody(java.lang.String Body) {
      this.Body = Body;
      Body__is_set = true;
    }

    /**
     * element : BodyCrc of type {http://www.w3.org/2001/XMLSchema}double
     * java type: java.lang.Double
     */
    private static final com.sforce.ws.bind.TypeInfo BodyCrc__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","BodyCrc","http://www.w3.org/2001/XMLSchema","double",0,1,true);

    private boolean BodyCrc__is_set = false;

    private java.lang.Double BodyCrc;

    public java.lang.Double getBodyCrc() {
      return BodyCrc;
    }

    public void setBodyCrc(java.lang.Double BodyCrc) {
      this.BodyCrc = BodyCrc;
      BodyCrc__is_set = true;
    }

    /**
     * element : CreatedBy of type {urn:tooling.soap.sforce.com}User
     * java type: com.sforce.soap.tooling.User
     */
    private static final com.sforce.ws.bind.TypeInfo CreatedBy__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","CreatedBy","urn:tooling.soap.sforce.com","User",0,1,true);

    private boolean CreatedBy__is_set = false;

    private com.sforce.soap.tooling.User CreatedBy;

    public com.sforce.soap.tooling.User getCreatedBy() {
      return CreatedBy;
    }

    public void setCreatedBy(com.sforce.soap.tooling.User CreatedBy) {
      this.CreatedBy = CreatedBy;
      CreatedBy__is_set = true;
    }

    /**
     * element : CreatedById of type {urn:tooling.soap.sforce.com}ID
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo CreatedById__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","CreatedById","urn:tooling.soap.sforce.com","ID",0,1,true);

    private boolean CreatedById__is_set = false;

    private java.lang.String CreatedById;

    public java.lang.String getCreatedById() {
      return CreatedById;
    }

    public void setCreatedById(java.lang.String CreatedById) {
      this.CreatedById = CreatedById;
      CreatedById__is_set = true;
    }

    /**
     * element : CreatedDate of type {http://www.w3.org/2001/XMLSchema}dateTime
     * java type: java.util.Calendar
     */
    private static final com.sforce.ws.bind.TypeInfo CreatedDate__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","CreatedDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true);

    private boolean CreatedDate__is_set = false;

    private java.util.Calendar CreatedDate;

    public java.util.Calendar getCreatedDate() {
      return CreatedDate;
    }

    public void setCreatedDate(java.util.Calendar CreatedDate) {
      this.CreatedDate = CreatedDate;
      CreatedDate__is_set = true;
    }

    /**
     * element : FullName of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo FullName__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","FullName","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean FullName__is_set = false;

    private java.lang.String FullName;

    public java.lang.String getFullName() {
      return FullName;
    }

    public void setFullName(java.lang.String FullName) {
      this.FullName = FullName;
      FullName__is_set = true;
    }

    /**
     * element : IsValid of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: java.lang.Boolean
     */
    private static final com.sforce.ws.bind.TypeInfo IsValid__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","IsValid","http://www.w3.org/2001/XMLSchema","boolean",0,1,true);

    private boolean IsValid__is_set = false;

    private java.lang.Boolean IsValid;

    public java.lang.Boolean getIsValid() {
      return IsValid;
    }

    public void setIsValid(java.lang.Boolean IsValid) {
      this.IsValid = IsValid;
      IsValid__is_set = true;
    }

    /**
     * element : LastModifiedBy of type {urn:tooling.soap.sforce.com}User
     * java type: com.sforce.soap.tooling.User
     */
    private static final com.sforce.ws.bind.TypeInfo LastModifiedBy__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","LastModifiedBy","urn:tooling.soap.sforce.com","User",0,1,true);

    private boolean LastModifiedBy__is_set = false;

    private com.sforce.soap.tooling.User LastModifiedBy;

    public com.sforce.soap.tooling.User getLastModifiedBy() {
      return LastModifiedBy;
    }

    public void setLastModifiedBy(com.sforce.soap.tooling.User LastModifiedBy) {
      this.LastModifiedBy = LastModifiedBy;
      LastModifiedBy__is_set = true;
    }

    /**
     * element : LastModifiedById of type {urn:tooling.soap.sforce.com}ID
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo LastModifiedById__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","LastModifiedById","urn:tooling.soap.sforce.com","ID",0,1,true);

    private boolean LastModifiedById__is_set = false;

    private java.lang.String LastModifiedById;

    public java.lang.String getLastModifiedById() {
      return LastModifiedById;
    }

    public void setLastModifiedById(java.lang.String LastModifiedById) {
      this.LastModifiedById = LastModifiedById;
      LastModifiedById__is_set = true;
    }

    /**
     * element : LastModifiedDate of type {http://www.w3.org/2001/XMLSchema}dateTime
     * java type: java.util.Calendar
     */
    private static final com.sforce.ws.bind.TypeInfo LastModifiedDate__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","LastModifiedDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true);

    private boolean LastModifiedDate__is_set = false;

    private java.util.Calendar LastModifiedDate;

    public java.util.Calendar getLastModifiedDate() {
      return LastModifiedDate;
    }

    public void setLastModifiedDate(java.util.Calendar LastModifiedDate) {
      this.LastModifiedDate = LastModifiedDate;
      LastModifiedDate__is_set = true;
    }

    /**
     * element : LengthWithoutComments of type {http://www.w3.org/2001/XMLSchema}int
     * java type: java.lang.Integer
     */
    private static final com.sforce.ws.bind.TypeInfo LengthWithoutComments__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","LengthWithoutComments","http://www.w3.org/2001/XMLSchema","int",0,1,true);

    private boolean LengthWithoutComments__is_set = false;

    private java.lang.Integer LengthWithoutComments;

    public java.lang.Integer getLengthWithoutComments() {
      return LengthWithoutComments;
    }

    public void setLengthWithoutComments(java.lang.Integer LengthWithoutComments) {
      this.LengthWithoutComments = LengthWithoutComments;
      LengthWithoutComments__is_set = true;
    }

    /**
     * element : Metadata of type {urn:tooling.soap.sforce.com}ApexClassMetadata
     * java type: com.sforce.soap.tooling.ApexClassMetadata
     */
    private static final com.sforce.ws.bind.TypeInfo Metadata__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","Metadata","urn:tooling.soap.sforce.com","ApexClassMetadata",0,1,true);

    private boolean Metadata__is_set = false;

    private com.sforce.soap.tooling.ApexClassMetadata Metadata;

    public com.sforce.soap.tooling.ApexClassMetadata getMetadata() {
      return Metadata;
    }

    public void setMetadata(com.sforce.soap.tooling.ApexClassMetadata Metadata) {
      this.Metadata = Metadata;
      Metadata__is_set = true;
    }

    /**
     * element : Name of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo Name__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","Name","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean Name__is_set = false;

    private java.lang.String Name;

    public java.lang.String getName() {
      return Name;
    }

    public void setName(java.lang.String Name) {
      this.Name = Name;
      Name__is_set = true;
    }

    /**
     * element : NamespacePrefix of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo NamespacePrefix__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","NamespacePrefix","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean NamespacePrefix__is_set = false;

    private java.lang.String NamespacePrefix;

    public java.lang.String getNamespacePrefix() {
      return NamespacePrefix;
    }

    public void setNamespacePrefix(java.lang.String NamespacePrefix) {
      this.NamespacePrefix = NamespacePrefix;
      NamespacePrefix__is_set = true;
    }

    /**
     * element : Status of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo Status__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","Status","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean Status__is_set = false;

    private java.lang.String Status;

    public java.lang.String getStatus() {
      return Status;
    }

    public void setStatus(java.lang.String Status) {
      this.Status = Status;
      Status__is_set = true;
    }

    /**
     * element : SymbolTable of type {urn:tooling.soap.sforce.com}SymbolTable
     * java type: com.sforce.soap.tooling.SymbolTable
     */
    private static final com.sforce.ws.bind.TypeInfo SymbolTable__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","SymbolTable","urn:tooling.soap.sforce.com","SymbolTable",0,1,true);

    private boolean SymbolTable__is_set = false;

    private com.sforce.soap.tooling.SymbolTable SymbolTable;

    public com.sforce.soap.tooling.SymbolTable getSymbolTable() {
      return SymbolTable;
    }

    public void setSymbolTable(com.sforce.soap.tooling.SymbolTable SymbolTable) {
      this.SymbolTable = SymbolTable;
      SymbolTable__is_set = true;
    }

    /**
     * element : SystemModstamp of type {http://www.w3.org/2001/XMLSchema}dateTime
     * java type: java.util.Calendar
     */
    private static final com.sforce.ws.bind.TypeInfo SystemModstamp__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","SystemModstamp","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true);

    private boolean SystemModstamp__is_set = false;

    private java.util.Calendar SystemModstamp;

    public java.util.Calendar getSystemModstamp() {
      return SystemModstamp;
    }

    public void setSystemModstamp(java.util.Calendar SystemModstamp) {
      this.SystemModstamp = SystemModstamp;
      SystemModstamp__is_set = true;
    }

    /**
     */
    @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());
      __typeMapper.writeXsiType(__out, "urn:tooling.soap.sforce.com", "ApexClass");
      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 {
       super.writeFields(__out, __typeMapper);
       __typeMapper.writeObject(__out, ApiVersion__typeInfo, ApiVersion, ApiVersion__is_set);
       __typeMapper.writeString(__out, Body__typeInfo, Body, Body__is_set);
       __typeMapper.writeObject(__out, BodyCrc__typeInfo, BodyCrc, BodyCrc__is_set);
       __typeMapper.writeObject(__out, CreatedBy__typeInfo, CreatedBy, CreatedBy__is_set);
       __typeMapper.writeString(__out, CreatedById__typeInfo, CreatedById, CreatedById__is_set);
       __typeMapper.writeObject(__out, CreatedDate__typeInfo, CreatedDate, CreatedDate__is_set);
       __typeMapper.writeString(__out, FullName__typeInfo, FullName, FullName__is_set);
       __typeMapper.writeObject(__out, IsValid__typeInfo, IsValid, IsValid__is_set);
       __typeMapper.writeObject(__out, LastModifiedBy__typeInfo, LastModifiedBy, LastModifiedBy__is_set);
       __typeMapper.writeString(__out, LastModifiedById__typeInfo, LastModifiedById, LastModifiedById__is_set);
       __typeMapper.writeObject(__out, LastModifiedDate__typeInfo, LastModifiedDate, LastModifiedDate__is_set);
       __typeMapper.writeObject(__out, LengthWithoutComments__typeInfo, LengthWithoutComments, LengthWithoutComments__is_set);
       __typeMapper.writeObject(__out, Metadata__typeInfo, Metadata, Metadata__is_set);
       __typeMapper.writeString(__out, Name__typeInfo, Name, Name__is_set);
       __typeMapper.writeString(__out, NamespacePrefix__typeInfo, NamespacePrefix, NamespacePrefix__is_set);
       __typeMapper.writeString(__out, Status__typeInfo, Status, Status__is_set);
       __typeMapper.writeObject(__out, SymbolTable__typeInfo, SymbolTable, SymbolTable__is_set);
       __typeMapper.writeObject(__out, SystemModstamp__typeInfo, SystemModstamp, SystemModstamp__is_set);
    }

    @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 {
        super.loadFields(__in, __typeMapper);
        __in.peekTag();
        if (__typeMapper.isElement(__in, ApiVersion__typeInfo)) {
            setApiVersion((java.lang.Double)__typeMapper.readObject(__in, ApiVersion__typeInfo, java.lang.Double.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, Body__typeInfo)) {
            setBody(__typeMapper.readString(__in, Body__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, BodyCrc__typeInfo)) {
            setBodyCrc((java.lang.Double)__typeMapper.readObject(__in, BodyCrc__typeInfo, java.lang.Double.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
            setCreatedBy((com.sforce.soap.tooling.User)__typeMapper.readObject(__in, CreatedBy__typeInfo, com.sforce.soap.tooling.User.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
            setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
            setCreatedDate((java.util.Calendar)__typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, FullName__typeInfo)) {
            setFullName(__typeMapper.readString(__in, FullName__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, IsValid__typeInfo)) {
            setIsValid((java.lang.Boolean)__typeMapper.readObject(__in, IsValid__typeInfo, java.lang.Boolean.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, LastModifiedBy__typeInfo)) {
            setLastModifiedBy((com.sforce.soap.tooling.User)__typeMapper.readObject(__in, LastModifiedBy__typeInfo, com.sforce.soap.tooling.User.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, LastModifiedById__typeInfo)) {
            setLastModifiedById(__typeMapper.readString(__in, LastModifiedById__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
            setLastModifiedDate((java.util.Calendar)__typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, LengthWithoutComments__typeInfo)) {
            setLengthWithoutComments((java.lang.Integer)__typeMapper.readObject(__in, LengthWithoutComments__typeInfo, java.lang.Integer.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, Metadata__typeInfo)) {
            setMetadata((com.sforce.soap.tooling.ApexClassMetadata)__typeMapper.readObject(__in, Metadata__typeInfo, com.sforce.soap.tooling.ApexClassMetadata.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, Name__typeInfo)) {
            setName(__typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, NamespacePrefix__typeInfo)) {
            setNamespacePrefix(__typeMapper.readString(__in, NamespacePrefix__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, Status__typeInfo)) {
            setStatus(__typeMapper.readString(__in, Status__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, SymbolTable__typeInfo)) {
            setSymbolTable((com.sforce.soap.tooling.SymbolTable)__typeMapper.readObject(__in, SymbolTable__typeInfo, com.sforce.soap.tooling.SymbolTable.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
            setSystemModstamp((java.util.Calendar)__typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[ApexClass ");
      sb.append(super.toString());sb.append(" ApiVersion=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(ApiVersion)+"'\n");
      sb.append(" Body=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Body)+"'\n");
      sb.append(" BodyCrc=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(BodyCrc)+"'\n");
      sb.append(" CreatedBy=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(CreatedBy)+"'\n");
      sb.append(" CreatedById=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(CreatedById)+"'\n");
      sb.append(" CreatedDate=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(CreatedDate)+"'\n");
      sb.append(" FullName=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(FullName)+"'\n");
      sb.append(" IsValid=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(IsValid)+"'\n");
      sb.append(" LastModifiedBy=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(LastModifiedBy)+"'\n");
      sb.append(" LastModifiedById=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(LastModifiedById)+"'\n");
      sb.append(" LastModifiedDate=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(LastModifiedDate)+"'\n");
      sb.append(" LengthWithoutComments=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(LengthWithoutComments)+"'\n");
      sb.append(" Metadata=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Metadata)+"'\n");
      sb.append(" Name=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Name)+"'\n");
      sb.append(" NamespacePrefix=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(NamespacePrefix)+"'\n");
      sb.append(" Status=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Status)+"'\n");
      sb.append(" SymbolTable=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(SymbolTable)+"'\n");
      sb.append(" SystemModstamp=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(SystemModstamp)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy