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

com.sforce.soap.metadata.CustomApplicationComponent 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 CustomApplicationComponent extends com.sforce.soap.metadata.Metadata {

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

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

    private boolean buttonIconUrl__is_set = false;

    private java.lang.String buttonIconUrl;

    public java.lang.String getButtonIconUrl() {
      return buttonIconUrl;
    }

    public void setButtonIconUrl(java.lang.String buttonIconUrl) {
      this.buttonIconUrl = buttonIconUrl;
      buttonIconUrl__is_set = true;
    }

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

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

    private boolean buttonStyle__is_set = false;

    private java.lang.String buttonStyle;

    public java.lang.String getButtonStyle() {
      return buttonStyle;
    }

    public void setButtonStyle(java.lang.String buttonStyle) {
      this.buttonStyle = buttonStyle;
      buttonStyle__is_set = true;
    }

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

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

    private boolean buttonText__is_set = false;

    private java.lang.String buttonText;

    public java.lang.String getButtonText() {
      return buttonText;
    }

    public void setButtonText(java.lang.String buttonText) {
      this.buttonText = buttonText;
      buttonText__is_set = true;
    }

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

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

    private boolean buttonWidth__is_set = false;

    private int buttonWidth;

    public int getButtonWidth() {
      return buttonWidth;
    }

    public void setButtonWidth(int buttonWidth) {
      this.buttonWidth = buttonWidth;
      buttonWidth__is_set = true;
    }

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

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

    private boolean height__is_set = false;

    private int height;

    public int getHeight() {
      return height;
    }

    public void setHeight(int height) {
      this.height = height;
      height__is_set = true;
    }

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

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

    private boolean isHeightFixed__is_set = false;

    private boolean isHeightFixed;

    public boolean getIsHeightFixed() {
      return isHeightFixed;
    }

    public boolean isIsHeightFixed() {
      return isHeightFixed;
    }

    public void setIsHeightFixed(boolean isHeightFixed) {
      this.isHeightFixed = isHeightFixed;
      isHeightFixed__is_set = true;
    }

    protected void setIsHeightFixed(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, isHeightFixed__typeInfo)) {
        setIsHeightFixed(__typeMapper.readBoolean(__in, isHeightFixed__typeInfo, boolean.class));
      }
    }

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

    private boolean isHidden__is_set = false;

    private boolean isHidden;

    public boolean getIsHidden() {
      return isHidden;
    }

    public boolean isIsHidden() {
      return isHidden;
    }

    public void setIsHidden(boolean isHidden) {
      this.isHidden = isHidden;
      isHidden__is_set = true;
    }

    protected void setIsHidden(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, isHidden__typeInfo)) {
        setIsHidden(__typeMapper.readBoolean(__in, isHidden__typeInfo, boolean.class));
      }
    }

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

    private boolean isWidthFixed__is_set = false;

    private boolean isWidthFixed;

    public boolean getIsWidthFixed() {
      return isWidthFixed;
    }

    public boolean isIsWidthFixed() {
      return isWidthFixed;
    }

    public void setIsWidthFixed(boolean isWidthFixed) {
      this.isWidthFixed = isWidthFixed;
      isWidthFixed__is_set = true;
    }

    protected void setIsWidthFixed(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, isWidthFixed__typeInfo)) {
        setIsWidthFixed(__typeMapper.readBoolean(__in, isWidthFixed__typeInfo, boolean.class));
      }
    }

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

    private boolean visualforcePage__is_set = false;

    private java.lang.String visualforcePage;

    public java.lang.String getVisualforcePage() {
      return visualforcePage;
    }

    public void setVisualforcePage(java.lang.String visualforcePage) {
      this.visualforcePage = visualforcePage;
      visualforcePage__is_set = true;
    }

    protected void setVisualforcePage(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, visualforcePage__typeInfo)) {
        setVisualforcePage(__typeMapper.readString(__in, visualforcePage__typeInfo, java.lang.String.class));
      }
    }

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

    private boolean width__is_set = false;

    private int width;

    public int getWidth() {
      return width;
    }

    public void setWidth(int width) {
      this.width = width;
      width__is_set = true;
    }

    protected void setWidth(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, width__typeInfo)) {
        setWidth((int)__typeMapper.readInt(__in, width__typeInfo, int.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());
      __typeMapper.writeXsiType(__out, "http://soap.sforce.com/2006/04/metadata", "CustomApplicationComponent");
      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, buttonIconUrl__typeInfo, buttonIconUrl, buttonIconUrl__is_set);
       __typeMapper.writeString(__out, buttonStyle__typeInfo, buttonStyle, buttonStyle__is_set);
       __typeMapper.writeString(__out, buttonText__typeInfo, buttonText, buttonText__is_set);
       __typeMapper.writeInt(__out, buttonWidth__typeInfo, buttonWidth, buttonWidth__is_set);
       __typeMapper.writeInt(__out, height__typeInfo, height, height__is_set);
       __typeMapper.writeBoolean(__out, isHeightFixed__typeInfo, isHeightFixed, isHeightFixed__is_set);
       __typeMapper.writeBoolean(__out, isHidden__typeInfo, isHidden, isHidden__is_set);
       __typeMapper.writeBoolean(__out, isWidthFixed__typeInfo, isWidthFixed, isWidthFixed__is_set);
       __typeMapper.writeString(__out, visualforcePage__typeInfo, visualforcePage, visualforcePage__is_set);
       __typeMapper.writeInt(__out, width__typeInfo, width, width__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);
        setButtonIconUrl(__in, __typeMapper);
        setButtonStyle(__in, __typeMapper);
        setButtonText(__in, __typeMapper);
        setButtonWidth(__in, __typeMapper);
        setHeight(__in, __typeMapper);
        setIsHeightFixed(__in, __typeMapper);
        setIsHidden(__in, __typeMapper);
        setIsWidthFixed(__in, __typeMapper);
        setVisualforcePage(__in, __typeMapper);
        setWidth(__in, __typeMapper);
    }

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

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

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "buttonIconUrl", buttonIconUrl);
      toStringHelper(sb, "buttonStyle", buttonStyle);
      toStringHelper(sb, "buttonText", buttonText);
      toStringHelper(sb, "buttonWidth", buttonWidth);
      toStringHelper(sb, "height", height);
      toStringHelper(sb, "isHeightFixed", isHeightFixed);
      toStringHelper(sb, "isHidden", isHidden);
      toStringHelper(sb, "isWidthFixed", isWidthFixed);
      toStringHelper(sb, "visualforcePage", visualforcePage);
      toStringHelper(sb, "width", width);

    }


    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