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

com.sforce.soap.metadata.RecommendationDefinitionDetail Maven / Gradle / Ivy

package com.sforce.soap.metadata;

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

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

    /* 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 : actionUrl of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean actionUrl__is_set = false;

    private java.lang.String actionUrl;

    public java.lang.String getActionUrl() {
      return actionUrl;
    }

    public void setActionUrl(java.lang.String actionUrl) {
      this.actionUrl = actionUrl;
      actionUrl__is_set = true;
    }

    protected void setActionUrl(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("actionUrl", "http://soap.sforce.com/2006/04/metadata","actionUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setActionUrl(__typeMapper.readString(__in, _lookupTypeInfo("actionUrl", "http://soap.sforce.com/2006/04/metadata","actionUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldActionUrl(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("actionUrl", "http://soap.sforce.com/2006/04/metadata","actionUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true), actionUrl, actionUrl__is_set);
    }

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

    private java.lang.String description;

    public java.lang.String getDescription() {
      return description;
    }

    public void setDescription(java.lang.String description) {
      this.description = description;
      description__is_set = true;
    }

    protected void setDescription(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("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setDescription(__typeMapper.readString(__in, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldDescription(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), description, description__is_set);
    }

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

    private java.lang.String linkText;

    public java.lang.String getLinkText() {
      return linkText;
    }

    public void setLinkText(java.lang.String linkText) {
      this.linkText = linkText;
      linkText__is_set = true;
    }

    protected void setLinkText(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("linkText", "http://soap.sforce.com/2006/04/metadata","linkText","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setLinkText(__typeMapper.readString(__in, _lookupTypeInfo("linkText", "http://soap.sforce.com/2006/04/metadata","linkText","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldLinkText(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("linkText", "http://soap.sforce.com/2006/04/metadata","linkText","http://www.w3.org/2001/XMLSchema","string",0,1,true), linkText, linkText__is_set);
    }

    /**
     * element : scheduledRecommendations of type {http://soap.sforce.com/2006/04/metadata}ScheduledRecommendation
     * java type: com.sforce.soap.metadata.ScheduledRecommendation
     */
    private boolean scheduledRecommendations__is_set = false;

    private com.sforce.soap.metadata.ScheduledRecommendation scheduledRecommendations;

    public com.sforce.soap.metadata.ScheduledRecommendation getScheduledRecommendations() {
      return scheduledRecommendations;
    }

    public void setScheduledRecommendations(com.sforce.soap.metadata.ScheduledRecommendation scheduledRecommendations) {
      this.scheduledRecommendations = scheduledRecommendations;
      scheduledRecommendations__is_set = true;
    }

    protected void setScheduledRecommendations(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("scheduledRecommendations", "http://soap.sforce.com/2006/04/metadata","scheduledRecommendations","http://soap.sforce.com/2006/04/metadata","ScheduledRecommendation",0,1,true))) {
        setScheduledRecommendations((com.sforce.soap.metadata.ScheduledRecommendation)__typeMapper.readObject(__in, _lookupTypeInfo("scheduledRecommendations", "http://soap.sforce.com/2006/04/metadata","scheduledRecommendations","http://soap.sforce.com/2006/04/metadata","ScheduledRecommendation",0,1,true), com.sforce.soap.metadata.ScheduledRecommendation.class));
      }
    }

    private void writeFieldScheduledRecommendations(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("scheduledRecommendations", "http://soap.sforce.com/2006/04/metadata","scheduledRecommendations","http://soap.sforce.com/2006/04/metadata","ScheduledRecommendation",0,1,true), scheduledRecommendations, scheduledRecommendations__is_set);
    }

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

    private java.lang.String setupName;

    public java.lang.String getSetupName() {
      return setupName;
    }

    public void setSetupName(java.lang.String setupName) {
      this.setupName = setupName;
      setupName__is_set = true;
    }

    protected void setSetupName(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("setupName", "http://soap.sforce.com/2006/04/metadata","setupName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setSetupName(__typeMapper.readString(__in, _lookupTypeInfo("setupName", "http://soap.sforce.com/2006/04/metadata","setupName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldSetupName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("setupName", "http://soap.sforce.com/2006/04/metadata","setupName","http://www.w3.org/2001/XMLSchema","string",0,1,true), setupName, setupName__is_set);
    }

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

    private java.lang.String title;

    public java.lang.String getTitle() {
      return title;
    }

    public void setTitle(java.lang.String title) {
      this.title = title;
      title__is_set = true;
    }

    protected void setTitle(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("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setTitle(__typeMapper.readString(__in, _lookupTypeInfo("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldTitle(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true), title, title__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("[RecommendationDefinitionDetail ");
      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 {
      writeFieldActionUrl(__out, __typeMapper);
      writeFieldDescription(__out, __typeMapper);
      writeFieldLinkText(__out, __typeMapper);
      writeFieldScheduledRecommendations(__out, __typeMapper);
      writeFieldSetupName(__out, __typeMapper);
      writeFieldTitle(__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 {
      setActionUrl(__in, __typeMapper);
      setDescription(__in, __typeMapper);
      setLinkText(__in, __typeMapper);
      setScheduledRecommendations(__in, __typeMapper);
      setSetupName(__in, __typeMapper);
      setTitle(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "actionUrl", actionUrl);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "linkText", linkText);
      toStringHelper(sb, "scheduledRecommendations", scheduledRecommendations);
      toStringHelper(sb, "setupName", setupName);
      toStringHelper(sb, "title", title);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy