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

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

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

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

    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, description__typeInfo)) {
        setDescription(__typeMapper.readString(__in, description__typeInfo, java.lang.String.class));
      }
    }

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

    private boolean image__is_set = false;

    private java.lang.String image;

    public java.lang.String getImage() {
      return image;
    }

    public void setImage(java.lang.String image) {
      this.image = image;
      image__is_set = true;
    }

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

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

    private boolean order__is_set = false;

    private int order;

    public int getOrder() {
      return order;
    }

    public void setOrder(int order) {
      this.order = order;
      order__is_set = true;
    }

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

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

    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.verifyElement(__in, title__typeInfo)) {
        setTitle(__typeMapper.readString(__in, title__typeInfo, java.lang.String.class));
      }
    }

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

    private boolean type__is_set = false;

    private com.sforce.soap.metadata.CommunityTemplateBundleInfoType type;

    public com.sforce.soap.metadata.CommunityTemplateBundleInfoType getType() {
      return type;
    }

    public void setType(com.sforce.soap.metadata.CommunityTemplateBundleInfoType type) {
      this.type = type;
      type__is_set = true;
    }

    protected void setType(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, type__typeInfo)) {
        setType((com.sforce.soap.metadata.CommunityTemplateBundleInfoType)__typeMapper.readObject(__in, type__typeInfo, com.sforce.soap.metadata.CommunityTemplateBundleInfoType.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, description__typeInfo, description, description__is_set);
       __typeMapper.writeString(__out, image__typeInfo, image, image__is_set);
       __typeMapper.writeInt(__out, order__typeInfo, order, order__is_set);
       __typeMapper.writeString(__out, title__typeInfo, title, title__is_set);
       __typeMapper.writeObject(__out, type__typeInfo, type, type__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 {
        setDescription(__in, __typeMapper);
        setImage(__in, __typeMapper);
        setOrder(__in, __typeMapper);
        setTitle(__in, __typeMapper);
        setType(__in, __typeMapper);
    }

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

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

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "image", image);
      toStringHelper(sb, "order", order);
      toStringHelper(sb, "title", title);
      toStringHelper(sb, "type", type);

    }


    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