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

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

There is a newer version: 62.0.0
Show newest version
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 Workflow extends com.sforce.soap.metadata.Metadata {

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

    /* 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 : alerts of type {http://soap.sforce.com/2006/04/metadata}WorkflowAlert
     * java type: com.sforce.soap.metadata.WorkflowAlert[]
     */
    private boolean alerts__is_set = false;

    private com.sforce.soap.metadata.WorkflowAlert[] alerts = new com.sforce.soap.metadata.WorkflowAlert[0];

    public com.sforce.soap.metadata.WorkflowAlert[] getAlerts() {
      return alerts;
    }

    public void setAlerts(com.sforce.soap.metadata.WorkflowAlert[] alerts) {
      this.alerts = alerts;
      alerts__is_set = true;
    }

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

    private void writeFieldAlerts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("alerts", "http://soap.sforce.com/2006/04/metadata","alerts","http://soap.sforce.com/2006/04/metadata","WorkflowAlert",0,-1,true), alerts, alerts__is_set);
    }

    /**
     * element : fieldUpdates of type {http://soap.sforce.com/2006/04/metadata}WorkflowFieldUpdate
     * java type: com.sforce.soap.metadata.WorkflowFieldUpdate[]
     */
    private boolean fieldUpdates__is_set = false;

    private com.sforce.soap.metadata.WorkflowFieldUpdate[] fieldUpdates = new com.sforce.soap.metadata.WorkflowFieldUpdate[0];

    public com.sforce.soap.metadata.WorkflowFieldUpdate[] getFieldUpdates() {
      return fieldUpdates;
    }

    public void setFieldUpdates(com.sforce.soap.metadata.WorkflowFieldUpdate[] fieldUpdates) {
      this.fieldUpdates = fieldUpdates;
      fieldUpdates__is_set = true;
    }

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

    private void writeFieldFieldUpdates(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("fieldUpdates", "http://soap.sforce.com/2006/04/metadata","fieldUpdates","http://soap.sforce.com/2006/04/metadata","WorkflowFieldUpdate",0,-1,true), fieldUpdates, fieldUpdates__is_set);
    }

    /**
     * element : flowActions of type {http://soap.sforce.com/2006/04/metadata}WorkflowFlowAction
     * java type: com.sforce.soap.metadata.WorkflowFlowAction[]
     */
    private boolean flowActions__is_set = false;

    private com.sforce.soap.metadata.WorkflowFlowAction[] flowActions = new com.sforce.soap.metadata.WorkflowFlowAction[0];

    public com.sforce.soap.metadata.WorkflowFlowAction[] getFlowActions() {
      return flowActions;
    }

    public void setFlowActions(com.sforce.soap.metadata.WorkflowFlowAction[] flowActions) {
      this.flowActions = flowActions;
      flowActions__is_set = true;
    }

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

    private void writeFieldFlowActions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("flowActions", "http://soap.sforce.com/2006/04/metadata","flowActions","http://soap.sforce.com/2006/04/metadata","WorkflowFlowAction",0,-1,true), flowActions, flowActions__is_set);
    }

    /**
     * element : knowledgePublishes of type {http://soap.sforce.com/2006/04/metadata}WorkflowKnowledgePublish
     * java type: com.sforce.soap.metadata.WorkflowKnowledgePublish[]
     */
    private boolean knowledgePublishes__is_set = false;

    private com.sforce.soap.metadata.WorkflowKnowledgePublish[] knowledgePublishes = new com.sforce.soap.metadata.WorkflowKnowledgePublish[0];

    public com.sforce.soap.metadata.WorkflowKnowledgePublish[] getKnowledgePublishes() {
      return knowledgePublishes;
    }

    public void setKnowledgePublishes(com.sforce.soap.metadata.WorkflowKnowledgePublish[] knowledgePublishes) {
      this.knowledgePublishes = knowledgePublishes;
      knowledgePublishes__is_set = true;
    }

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

    private void writeFieldKnowledgePublishes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("knowledgePublishes", "http://soap.sforce.com/2006/04/metadata","knowledgePublishes","http://soap.sforce.com/2006/04/metadata","WorkflowKnowledgePublish",0,-1,true), knowledgePublishes, knowledgePublishes__is_set);
    }

    /**
     * element : outboundMessages of type {http://soap.sforce.com/2006/04/metadata}WorkflowOutboundMessage
     * java type: com.sforce.soap.metadata.WorkflowOutboundMessage[]
     */
    private boolean outboundMessages__is_set = false;

    private com.sforce.soap.metadata.WorkflowOutboundMessage[] outboundMessages = new com.sforce.soap.metadata.WorkflowOutboundMessage[0];

    public com.sforce.soap.metadata.WorkflowOutboundMessage[] getOutboundMessages() {
      return outboundMessages;
    }

    public void setOutboundMessages(com.sforce.soap.metadata.WorkflowOutboundMessage[] outboundMessages) {
      this.outboundMessages = outboundMessages;
      outboundMessages__is_set = true;
    }

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

    private void writeFieldOutboundMessages(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("outboundMessages", "http://soap.sforce.com/2006/04/metadata","outboundMessages","http://soap.sforce.com/2006/04/metadata","WorkflowOutboundMessage",0,-1,true), outboundMessages, outboundMessages__is_set);
    }

    /**
     * element : rules of type {http://soap.sforce.com/2006/04/metadata}WorkflowRule
     * java type: com.sforce.soap.metadata.WorkflowRule[]
     */
    private boolean rules__is_set = false;

    private com.sforce.soap.metadata.WorkflowRule[] rules = new com.sforce.soap.metadata.WorkflowRule[0];

    public com.sforce.soap.metadata.WorkflowRule[] getRules() {
      return rules;
    }

    public void setRules(com.sforce.soap.metadata.WorkflowRule[] rules) {
      this.rules = rules;
      rules__is_set = true;
    }

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

    private void writeFieldRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("rules", "http://soap.sforce.com/2006/04/metadata","rules","http://soap.sforce.com/2006/04/metadata","WorkflowRule",0,-1,true), rules, rules__is_set);
    }

    /**
     * element : send of type {http://soap.sforce.com/2006/04/metadata}WorkflowSend
     * java type: com.sforce.soap.metadata.WorkflowSend[]
     */
    private boolean send__is_set = false;

    private com.sforce.soap.metadata.WorkflowSend[] send = new com.sforce.soap.metadata.WorkflowSend[0];

    public com.sforce.soap.metadata.WorkflowSend[] getSend() {
      return send;
    }

    public void setSend(com.sforce.soap.metadata.WorkflowSend[] send) {
      this.send = send;
      send__is_set = true;
    }

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

    private void writeFieldSend(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("send", "http://soap.sforce.com/2006/04/metadata","send","http://soap.sforce.com/2006/04/metadata","WorkflowSend",0,-1,true), send, send__is_set);
    }

    /**
     * element : tasks of type {http://soap.sforce.com/2006/04/metadata}WorkflowTask
     * java type: com.sforce.soap.metadata.WorkflowTask[]
     */
    private boolean tasks__is_set = false;

    private com.sforce.soap.metadata.WorkflowTask[] tasks = new com.sforce.soap.metadata.WorkflowTask[0];

    public com.sforce.soap.metadata.WorkflowTask[] getTasks() {
      return tasks;
    }

    public void setTasks(com.sforce.soap.metadata.WorkflowTask[] tasks) {
      this.tasks = tasks;
      tasks__is_set = true;
    }

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

    private void writeFieldTasks(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("tasks", "http://soap.sforce.com/2006/04/metadata","tasks","http://soap.sforce.com/2006/04/metadata","WorkflowTask",0,-1,true), tasks, tasks__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());
      __typeMapper.writeXsiType(__out, "http://soap.sforce.com/2006/04/metadata", "Workflow");
      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);
       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 {
        super.loadFields(__in, __typeMapper);
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[Workflow ");
      sb.append(super.toString());
      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 {
      writeFieldAlerts(__out, __typeMapper);
      writeFieldFieldUpdates(__out, __typeMapper);
      writeFieldFlowActions(__out, __typeMapper);
      writeFieldKnowledgePublishes(__out, __typeMapper);
      writeFieldOutboundMessages(__out, __typeMapper);
      writeFieldRules(__out, __typeMapper);
      writeFieldSend(__out, __typeMapper);
      writeFieldTasks(__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 {
      setAlerts(__in, __typeMapper);
      setFieldUpdates(__in, __typeMapper);
      setFlowActions(__in, __typeMapper);
      setKnowledgePublishes(__in, __typeMapper);
      setOutboundMessages(__in, __typeMapper);
      setRules(__in, __typeMapper);
      setSend(__in, __typeMapper);
      setTasks(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "alerts", alerts);
      toStringHelper(sb, "fieldUpdates", fieldUpdates);
      toStringHelper(sb, "flowActions", flowActions);
      toStringHelper(sb, "knowledgePublishes", knowledgePublishes);
      toStringHelper(sb, "outboundMessages", outboundMessages);
      toStringHelper(sb, "rules", rules);
      toStringHelper(sb, "send", send);
      toStringHelper(sb, "tasks", tasks);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy