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

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

There is a newer version: 7.4.3.112-ga112
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 EscalationAction implements com.sforce.ws.bind.XMLizable {

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

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

    private boolean assignedTo__is_set = false;

    private java.lang.String assignedTo;

    public java.lang.String getAssignedTo() {
      return assignedTo;
    }

    public void setAssignedTo(java.lang.String assignedTo) {
      this.assignedTo = assignedTo;
      assignedTo__is_set = true;
    }

    protected void setAssignedTo(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, assignedTo__typeInfo)) {
        setAssignedTo(__typeMapper.readString(__in, assignedTo__typeInfo, java.lang.String.class));
      }
    }

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

    private boolean assignedToTemplate__is_set = false;

    private java.lang.String assignedToTemplate;

    public java.lang.String getAssignedToTemplate() {
      return assignedToTemplate;
    }

    public void setAssignedToTemplate(java.lang.String assignedToTemplate) {
      this.assignedToTemplate = assignedToTemplate;
      assignedToTemplate__is_set = true;
    }

    protected void setAssignedToTemplate(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, assignedToTemplate__typeInfo)) {
        setAssignedToTemplate(__typeMapper.readString(__in, assignedToTemplate__typeInfo, java.lang.String.class));
      }
    }

    /**
     * element : assignedToType of type {http://soap.sforce.com/2006/04/metadata}AssignToLookupValueType
     * java type: com.sforce.soap.metadata.AssignToLookupValueType
     */
    private static final com.sforce.ws.bind.TypeInfo assignedToType__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","assignedToType","http://soap.sforce.com/2006/04/metadata","AssignToLookupValueType",0,1,true);

    private boolean assignedToType__is_set = false;

    private com.sforce.soap.metadata.AssignToLookupValueType assignedToType;

    public com.sforce.soap.metadata.AssignToLookupValueType getAssignedToType() {
      return assignedToType;
    }

    public void setAssignedToType(com.sforce.soap.metadata.AssignToLookupValueType assignedToType) {
      this.assignedToType = assignedToType;
      assignedToType__is_set = true;
    }

    protected void setAssignedToType(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, assignedToType__typeInfo)) {
        setAssignedToType((com.sforce.soap.metadata.AssignToLookupValueType)__typeMapper.readObject(__in, assignedToType__typeInfo, com.sforce.soap.metadata.AssignToLookupValueType.class));
      }
    }

    /**
     * element : minutesToEscalation of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private static final com.sforce.ws.bind.TypeInfo minutesToEscalation__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","minutesToEscalation","http://www.w3.org/2001/XMLSchema","int",0,1,true);

    private boolean minutesToEscalation__is_set = false;

    private int minutesToEscalation;

    public int getMinutesToEscalation() {
      return minutesToEscalation;
    }

    public void setMinutesToEscalation(int minutesToEscalation) {
      this.minutesToEscalation = minutesToEscalation;
      minutesToEscalation__is_set = true;
    }

    protected void setMinutesToEscalation(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, minutesToEscalation__typeInfo)) {
        setMinutesToEscalation((int)__typeMapper.readInt(__in, minutesToEscalation__typeInfo, int.class));
      }
    }

    /**
     * element : notifyCaseOwner of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private static final com.sforce.ws.bind.TypeInfo notifyCaseOwner__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","notifyCaseOwner","http://www.w3.org/2001/XMLSchema","boolean",0,1,true);

    private boolean notifyCaseOwner__is_set = false;

    private boolean notifyCaseOwner;

    public boolean getNotifyCaseOwner() {
      return notifyCaseOwner;
    }

    public boolean isNotifyCaseOwner() {
      return notifyCaseOwner;
    }

    public void setNotifyCaseOwner(boolean notifyCaseOwner) {
      this.notifyCaseOwner = notifyCaseOwner;
      notifyCaseOwner__is_set = true;
    }

    protected void setNotifyCaseOwner(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, notifyCaseOwner__typeInfo)) {
        setNotifyCaseOwner(__typeMapper.readBoolean(__in, notifyCaseOwner__typeInfo, boolean.class));
      }
    }

    /**
     * element : notifyEmail of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String[]
     */
    private static final com.sforce.ws.bind.TypeInfo notifyEmail__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","notifyEmail","http://www.w3.org/2001/XMLSchema","string",0,-1,true);

    private boolean notifyEmail__is_set = false;

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

    public java.lang.String[] getNotifyEmail() {
      return notifyEmail;
    }

    public void setNotifyEmail(java.lang.String[] notifyEmail) {
      this.notifyEmail = notifyEmail;
      notifyEmail__is_set = true;
    }

    protected void setNotifyEmail(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, notifyEmail__typeInfo)) {
        setNotifyEmail((java.lang.String[])__typeMapper.readObject(__in, notifyEmail__typeInfo, java.lang.String[].class));
      }
    }

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

    private boolean notifyTo__is_set = false;

    private java.lang.String notifyTo;

    public java.lang.String getNotifyTo() {
      return notifyTo;
    }

    public void setNotifyTo(java.lang.String notifyTo) {
      this.notifyTo = notifyTo;
      notifyTo__is_set = true;
    }

    protected void setNotifyTo(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, notifyTo__typeInfo)) {
        setNotifyTo(__typeMapper.readString(__in, notifyTo__typeInfo, java.lang.String.class));
      }
    }

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

    private boolean notifyToTemplate__is_set = false;

    private java.lang.String notifyToTemplate;

    public java.lang.String getNotifyToTemplate() {
      return notifyToTemplate;
    }

    public void setNotifyToTemplate(java.lang.String notifyToTemplate) {
      this.notifyToTemplate = notifyToTemplate;
      notifyToTemplate__is_set = true;
    }

    protected void setNotifyToTemplate(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, notifyToTemplate__typeInfo)) {
        setNotifyToTemplate(__typeMapper.readString(__in, notifyToTemplate__typeInfo, java.lang.String.class));
      }
    }

    /**
     */
    @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 {
       __typeMapper.writeString(__out, assignedTo__typeInfo, assignedTo, assignedTo__is_set);
       __typeMapper.writeString(__out, assignedToTemplate__typeInfo, assignedToTemplate, assignedToTemplate__is_set);
       __typeMapper.writeObject(__out, assignedToType__typeInfo, assignedToType, assignedToType__is_set);
       __typeMapper.writeInt(__out, minutesToEscalation__typeInfo, minutesToEscalation, minutesToEscalation__is_set);
       __typeMapper.writeBoolean(__out, notifyCaseOwner__typeInfo, notifyCaseOwner, notifyCaseOwner__is_set);
       __typeMapper.writeObject(__out, notifyEmail__typeInfo, notifyEmail, notifyEmail__is_set);
       __typeMapper.writeString(__out, notifyTo__typeInfo, notifyTo, notifyTo__is_set);
       __typeMapper.writeString(__out, notifyToTemplate__typeInfo, notifyToTemplate, notifyToTemplate__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 {
        setAssignedTo(__in, __typeMapper);
        setAssignedToTemplate(__in, __typeMapper);
        setAssignedToType(__in, __typeMapper);
        setMinutesToEscalation(__in, __typeMapper);
        setNotifyCaseOwner(__in, __typeMapper);
        setNotifyEmail(__in, __typeMapper);
        setNotifyTo(__in, __typeMapper);
        setNotifyToTemplate(__in, __typeMapper);
    }

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

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

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "assignedTo", assignedTo);
      toStringHelper(sb, "assignedToTemplate", assignedToTemplate);
      toStringHelper(sb, "assignedToType", assignedToType);
      toStringHelper(sb, "minutesToEscalation", minutesToEscalation);
      toStringHelper(sb, "notifyCaseOwner", notifyCaseOwner);
      toStringHelper(sb, "notifyEmail", notifyEmail);
      toStringHelper(sb, "notifyTo", notifyTo);
      toStringHelper(sb, "notifyToTemplate", notifyToTemplate);

    }


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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy