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

com.sforce.soap.metadata.Holiday 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 Holiday implements com.sforce.ws.bind.XMLizable {

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

    /* 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 : activityDate of type {http://www.w3.org/2001/XMLSchema}date
     * java type: java.util.Calendar
     */
    private boolean activityDate__is_set = false;

    private java.util.Calendar activityDate;

    public java.util.Calendar getActivityDate() {
      return activityDate;
    }

    public void setActivityDate(java.util.Calendar activityDate) {
      this.activityDate = activityDate;
      activityDate__is_set = true;
    }

    protected void setActivityDate(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("activityDate", "http://soap.sforce.com/2006/04/metadata","activityDate","http://www.w3.org/2001/XMLSchema","date",0,1,true))) {
        setActivityDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("activityDate", "http://soap.sforce.com/2006/04/metadata","activityDate","http://www.w3.org/2001/XMLSchema","date",0,1,true), java.util.Calendar.class));
      }
    }

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

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

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

    public java.lang.String[] getBusinessHours() {
      return businessHours;
    }

    public void setBusinessHours(java.lang.String[] businessHours) {
      this.businessHours = businessHours;
      businessHours__is_set = true;
    }

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

    private void writeFieldBusinessHours(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,-1,true), businessHours, businessHours__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 : endTime of type {http://www.w3.org/2001/XMLSchema}time
     * java type: com.sforce.ws.types.Time
     */
    private boolean endTime__is_set = false;

    private com.sforce.ws.types.Time endTime;

    public com.sforce.ws.types.Time getEndTime() {
      return endTime;
    }

    public void setEndTime(com.sforce.ws.types.Time endTime) {
      this.endTime = endTime;
      endTime__is_set = true;
    }

    protected void setEndTime(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("endTime", "http://soap.sforce.com/2006/04/metadata","endTime","http://www.w3.org/2001/XMLSchema","time",0,1,true))) {
        setEndTime((com.sforce.ws.types.Time)__typeMapper.readObject(__in, _lookupTypeInfo("endTime", "http://soap.sforce.com/2006/04/metadata","endTime","http://www.w3.org/2001/XMLSchema","time",0,1,true), com.sforce.ws.types.Time.class));
      }
    }

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

    /**
     * element : isRecurring of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean isRecurring__is_set = false;

    private boolean isRecurring;

    public boolean getIsRecurring() {
      return isRecurring;
    }

    public boolean isIsRecurring() {
      return isRecurring;
    }

    public void setIsRecurring(boolean isRecurring) {
      this.isRecurring = isRecurring;
      isRecurring__is_set = true;
    }

    protected void setIsRecurring(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("isRecurring", "http://soap.sforce.com/2006/04/metadata","isRecurring","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setIsRecurring(__typeMapper.readBoolean(__in, _lookupTypeInfo("isRecurring", "http://soap.sforce.com/2006/04/metadata","isRecurring","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

    /**
     * element : name of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    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;
    }

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

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

    /**
     * element : recurrenceDayOfMonth of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private boolean recurrenceDayOfMonth__is_set = false;

    private int recurrenceDayOfMonth;

    public int getRecurrenceDayOfMonth() {
      return recurrenceDayOfMonth;
    }

    public void setRecurrenceDayOfMonth(int recurrenceDayOfMonth) {
      this.recurrenceDayOfMonth = recurrenceDayOfMonth;
      recurrenceDayOfMonth__is_set = true;
    }

    protected void setRecurrenceDayOfMonth(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("recurrenceDayOfMonth", "http://soap.sforce.com/2006/04/metadata","recurrenceDayOfMonth","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setRecurrenceDayOfMonth((int)__typeMapper.readInt(__in, _lookupTypeInfo("recurrenceDayOfMonth", "http://soap.sforce.com/2006/04/metadata","recurrenceDayOfMonth","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

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

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

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

    public java.lang.String[] getRecurrenceDayOfWeek() {
      return recurrenceDayOfWeek;
    }

    public void setRecurrenceDayOfWeek(java.lang.String[] recurrenceDayOfWeek) {
      this.recurrenceDayOfWeek = recurrenceDayOfWeek;
      recurrenceDayOfWeek__is_set = true;
    }

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

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

    /**
     * element : recurrenceDayOfWeekMask of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private boolean recurrenceDayOfWeekMask__is_set = false;

    private int recurrenceDayOfWeekMask;

    public int getRecurrenceDayOfWeekMask() {
      return recurrenceDayOfWeekMask;
    }

    public void setRecurrenceDayOfWeekMask(int recurrenceDayOfWeekMask) {
      this.recurrenceDayOfWeekMask = recurrenceDayOfWeekMask;
      recurrenceDayOfWeekMask__is_set = true;
    }

    protected void setRecurrenceDayOfWeekMask(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("recurrenceDayOfWeekMask", "http://soap.sforce.com/2006/04/metadata","recurrenceDayOfWeekMask","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setRecurrenceDayOfWeekMask((int)__typeMapper.readInt(__in, _lookupTypeInfo("recurrenceDayOfWeekMask", "http://soap.sforce.com/2006/04/metadata","recurrenceDayOfWeekMask","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

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

    /**
     * element : recurrenceEndDate of type {http://www.w3.org/2001/XMLSchema}date
     * java type: java.util.Calendar
     */
    private boolean recurrenceEndDate__is_set = false;

    private java.util.Calendar recurrenceEndDate;

    public java.util.Calendar getRecurrenceEndDate() {
      return recurrenceEndDate;
    }

    public void setRecurrenceEndDate(java.util.Calendar recurrenceEndDate) {
      this.recurrenceEndDate = recurrenceEndDate;
      recurrenceEndDate__is_set = true;
    }

    protected void setRecurrenceEndDate(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("recurrenceEndDate", "http://soap.sforce.com/2006/04/metadata","recurrenceEndDate","http://www.w3.org/2001/XMLSchema","date",0,1,true))) {
        setRecurrenceEndDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("recurrenceEndDate", "http://soap.sforce.com/2006/04/metadata","recurrenceEndDate","http://www.w3.org/2001/XMLSchema","date",0,1,true), java.util.Calendar.class));
      }
    }

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

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

    private java.lang.String recurrenceInstance;

    public java.lang.String getRecurrenceInstance() {
      return recurrenceInstance;
    }

    public void setRecurrenceInstance(java.lang.String recurrenceInstance) {
      this.recurrenceInstance = recurrenceInstance;
      recurrenceInstance__is_set = true;
    }

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

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

    /**
     * element : recurrenceInterval of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private boolean recurrenceInterval__is_set = false;

    private int recurrenceInterval;

    public int getRecurrenceInterval() {
      return recurrenceInterval;
    }

    public void setRecurrenceInterval(int recurrenceInterval) {
      this.recurrenceInterval = recurrenceInterval;
      recurrenceInterval__is_set = true;
    }

    protected void setRecurrenceInterval(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("recurrenceInterval", "http://soap.sforce.com/2006/04/metadata","recurrenceInterval","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setRecurrenceInterval((int)__typeMapper.readInt(__in, _lookupTypeInfo("recurrenceInterval", "http://soap.sforce.com/2006/04/metadata","recurrenceInterval","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

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

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

    private java.lang.String recurrenceMonthOfYear;

    public java.lang.String getRecurrenceMonthOfYear() {
      return recurrenceMonthOfYear;
    }

    public void setRecurrenceMonthOfYear(java.lang.String recurrenceMonthOfYear) {
      this.recurrenceMonthOfYear = recurrenceMonthOfYear;
      recurrenceMonthOfYear__is_set = true;
    }

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

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

    /**
     * element : recurrenceStartDate of type {http://www.w3.org/2001/XMLSchema}date
     * java type: java.util.Calendar
     */
    private boolean recurrenceStartDate__is_set = false;

    private java.util.Calendar recurrenceStartDate;

    public java.util.Calendar getRecurrenceStartDate() {
      return recurrenceStartDate;
    }

    public void setRecurrenceStartDate(java.util.Calendar recurrenceStartDate) {
      this.recurrenceStartDate = recurrenceStartDate;
      recurrenceStartDate__is_set = true;
    }

    protected void setRecurrenceStartDate(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("recurrenceStartDate", "http://soap.sforce.com/2006/04/metadata","recurrenceStartDate","http://www.w3.org/2001/XMLSchema","date",0,1,true))) {
        setRecurrenceStartDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("recurrenceStartDate", "http://soap.sforce.com/2006/04/metadata","recurrenceStartDate","http://www.w3.org/2001/XMLSchema","date",0,1,true), java.util.Calendar.class));
      }
    }

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

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

    private java.lang.String recurrenceType;

    public java.lang.String getRecurrenceType() {
      return recurrenceType;
    }

    public void setRecurrenceType(java.lang.String recurrenceType) {
      this.recurrenceType = recurrenceType;
      recurrenceType__is_set = true;
    }

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

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

    /**
     * element : startTime of type {http://www.w3.org/2001/XMLSchema}time
     * java type: com.sforce.ws.types.Time
     */
    private boolean startTime__is_set = false;

    private com.sforce.ws.types.Time startTime;

    public com.sforce.ws.types.Time getStartTime() {
      return startTime;
    }

    public void setStartTime(com.sforce.ws.types.Time startTime) {
      this.startTime = startTime;
      startTime__is_set = true;
    }

    protected void setStartTime(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("startTime", "http://soap.sforce.com/2006/04/metadata","startTime","http://www.w3.org/2001/XMLSchema","time",0,1,true))) {
        setStartTime((com.sforce.ws.types.Time)__typeMapper.readObject(__in, _lookupTypeInfo("startTime", "http://soap.sforce.com/2006/04/metadata","startTime","http://www.w3.org/2001/XMLSchema","time",0,1,true), com.sforce.ws.types.Time.class));
      }
    }

    private void writeFieldStartTime(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("startTime", "http://soap.sforce.com/2006/04/metadata","startTime","http://www.w3.org/2001/XMLSchema","time",0,1,true), startTime, startTime__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("[Holiday ");
      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 {
      writeFieldActivityDate(__out, __typeMapper);
      writeFieldBusinessHours(__out, __typeMapper);
      writeFieldDescription(__out, __typeMapper);
      writeFieldEndTime(__out, __typeMapper);
      writeFieldIsRecurring(__out, __typeMapper);
      writeFieldName(__out, __typeMapper);
      writeFieldRecurrenceDayOfMonth(__out, __typeMapper);
      writeFieldRecurrenceDayOfWeek(__out, __typeMapper);
      writeFieldRecurrenceDayOfWeekMask(__out, __typeMapper);
      writeFieldRecurrenceEndDate(__out, __typeMapper);
      writeFieldRecurrenceInstance(__out, __typeMapper);
      writeFieldRecurrenceInterval(__out, __typeMapper);
      writeFieldRecurrenceMonthOfYear(__out, __typeMapper);
      writeFieldRecurrenceStartDate(__out, __typeMapper);
      writeFieldRecurrenceType(__out, __typeMapper);
      writeFieldStartTime(__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 {
      setActivityDate(__in, __typeMapper);
      setBusinessHours(__in, __typeMapper);
      setDescription(__in, __typeMapper);
      setEndTime(__in, __typeMapper);
      setIsRecurring(__in, __typeMapper);
      setName(__in, __typeMapper);
      setRecurrenceDayOfMonth(__in, __typeMapper);
      setRecurrenceDayOfWeek(__in, __typeMapper);
      setRecurrenceDayOfWeekMask(__in, __typeMapper);
      setRecurrenceEndDate(__in, __typeMapper);
      setRecurrenceInstance(__in, __typeMapper);
      setRecurrenceInterval(__in, __typeMapper);
      setRecurrenceMonthOfYear(__in, __typeMapper);
      setRecurrenceStartDate(__in, __typeMapper);
      setRecurrenceType(__in, __typeMapper);
      setStartTime(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "activityDate", activityDate);
      toStringHelper(sb, "businessHours", businessHours);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "endTime", endTime);
      toStringHelper(sb, "isRecurring", isRecurring);
      toStringHelper(sb, "name", name);
      toStringHelper(sb, "recurrenceDayOfMonth", recurrenceDayOfMonth);
      toStringHelper(sb, "recurrenceDayOfWeek", recurrenceDayOfWeek);
      toStringHelper(sb, "recurrenceDayOfWeekMask", recurrenceDayOfWeekMask);
      toStringHelper(sb, "recurrenceEndDate", recurrenceEndDate);
      toStringHelper(sb, "recurrenceInstance", recurrenceInstance);
      toStringHelper(sb, "recurrenceInterval", recurrenceInterval);
      toStringHelper(sb, "recurrenceMonthOfYear", recurrenceMonthOfYear);
      toStringHelper(sb, "recurrenceStartDate", recurrenceStartDate);
      toStringHelper(sb, "recurrenceType", recurrenceType);
      toStringHelper(sb, "startTime", startTime);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy