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

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

package com.sforce.soap.tooling;

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

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

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

    private boolean Preference__is_set = false;

    private java.lang.String Preference;

    public java.lang.String getPreference() {
      return Preference;
    }

    public void setPreference(java.lang.String Preference) {
      this.Preference = Preference;
      Preference__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;
    }

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

    private boolean UserId__is_set = false;

    private java.lang.String UserId;

    public java.lang.String getUserId() {
      return UserId;
    }

    public void setUserId(java.lang.String UserId) {
      this.UserId = UserId;
      UserId__is_set = true;
    }

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

    private boolean Value__is_set = false;

    private java.lang.String Value;

    public java.lang.String getValue() {
      return Value;
    }

    public void setValue(java.lang.String Value) {
      this.Value = Value;
      Value__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", "UserPreference");
      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.writeString(__out, Preference__typeInfo, Preference, Preference__is_set);
       __typeMapper.writeObject(__out, SystemModstamp__typeInfo, SystemModstamp, SystemModstamp__is_set);
       __typeMapper.writeString(__out, UserId__typeInfo, UserId, UserId__is_set);
       __typeMapper.writeString(__out, Value__typeInfo, Value, Value__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, Preference__typeInfo)) {
            setPreference(__typeMapper.readString(__in, Preference__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
            setSystemModstamp((java.util.Calendar)__typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, UserId__typeInfo)) {
            setUserId(__typeMapper.readString(__in, UserId__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, Value__typeInfo)) {
            setValue(__typeMapper.readString(__in, Value__typeInfo, java.lang.String.class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[UserPreference ");
      sb.append(super.toString());sb.append(" Preference=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Preference)+"'\n");
      sb.append(" SystemModstamp=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(SystemModstamp)+"'\n");
      sb.append(" UserId=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(UserId)+"'\n");
      sb.append(" Value=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(Value)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy