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

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

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

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

    /* 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 : assetAudiences of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean assetAudiences__is_set = false;

    private java.lang.String assetAudiences;

    public java.lang.String getAssetAudiences() {
      return assetAudiences;
    }

    public void setAssetAudiences(java.lang.String assetAudiences) {
      this.assetAudiences = assetAudiences;
      assetAudiences__is_set = true;
    }

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

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

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

    private boolean assetIncludeAttributes;

    public boolean getAssetIncludeAttributes() {
      return assetIncludeAttributes;
    }

    public boolean isAssetIncludeAttributes() {
      return assetIncludeAttributes;
    }

    public void setAssetIncludeAttributes(boolean assetIncludeAttributes) {
      this.assetIncludeAttributes = assetIncludeAttributes;
      assetIncludeAttributes__is_set = true;
    }

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

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

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

    private boolean assetIncludeCustomPerms;

    public boolean getAssetIncludeCustomPerms() {
      return assetIncludeCustomPerms;
    }

    public boolean isAssetIncludeCustomPerms() {
      return assetIncludeCustomPerms;
    }

    public void setAssetIncludeCustomPerms(boolean assetIncludeCustomPerms) {
      this.assetIncludeCustomPerms = assetIncludeCustomPerms;
      assetIncludeCustomPerms__is_set = true;
    }

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

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

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

    private java.lang.String assetSigningCertId;

    public java.lang.String getAssetSigningCertId() {
      return assetSigningCertId;
    }

    public void setAssetSigningCertId(java.lang.String assetSigningCertId) {
      this.assetSigningCertId = assetSigningCertId;
      assetSigningCertId__is_set = true;
    }

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

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

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

    private int assetValidityPeriod;

    public int getAssetValidityPeriod() {
      return assetValidityPeriod;
    }

    public void setAssetValidityPeriod(int assetValidityPeriod) {
      this.assetValidityPeriod = assetValidityPeriod;
      assetValidityPeriod__is_set = true;
    }

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

    private void writeFieldAssetValidityPeriod(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("assetValidityPeriod", "http://soap.sforce.com/2006/04/metadata","assetValidityPeriod","http://www.w3.org/2001/XMLSchema","int",1,1,true), assetValidityPeriod, assetValidityPeriod__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("[ConnectedAppOauthAssetToken ");
      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 {
      writeFieldAssetAudiences(__out, __typeMapper);
      writeFieldAssetIncludeAttributes(__out, __typeMapper);
      writeFieldAssetIncludeCustomPerms(__out, __typeMapper);
      writeFieldAssetSigningCertId(__out, __typeMapper);
      writeFieldAssetValidityPeriod(__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 {
      setAssetAudiences(__in, __typeMapper);
      setAssetIncludeAttributes(__in, __typeMapper);
      setAssetIncludeCustomPerms(__in, __typeMapper);
      setAssetSigningCertId(__in, __typeMapper);
      setAssetValidityPeriod(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "assetAudiences", assetAudiences);
      toStringHelper(sb, "assetIncludeAttributes", assetIncludeAttributes);
      toStringHelper(sb, "assetIncludeCustomPerms", assetIncludeCustomPerms);
      toStringHelper(sb, "assetSigningCertId", assetSigningCertId);
      toStringHelper(sb, "assetValidityPeriod", assetValidityPeriod);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy