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

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

There is a newer version: 64.0.3
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 LightningComponentBundle extends com.sforce.soap.metadata.Metadata {

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

    /* 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 : apiVersion of type {http://www.w3.org/2001/XMLSchema}double
     * java type: double
     */
    private boolean apiVersion__is_set = false;

    private double apiVersion;

    public double getApiVersion() {
      return apiVersion;
    }

    public void setApiVersion(double apiVersion) {
      this.apiVersion = apiVersion;
      apiVersion__is_set = true;
    }

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

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

    /**
     * element : capabilities of type {http://soap.sforce.com/2006/04/metadata}Capabilities
     * java type: com.sforce.soap.metadata.Capabilities
     */
    private boolean capabilities__is_set = false;

    private com.sforce.soap.metadata.Capabilities capabilities;

    public com.sforce.soap.metadata.Capabilities getCapabilities() {
      return capabilities;
    }

    public void setCapabilities(com.sforce.soap.metadata.Capabilities capabilities) {
      this.capabilities = capabilities;
      capabilities__is_set = true;
    }

    protected void setCapabilities(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("capabilities", "http://soap.sforce.com/2006/04/metadata","capabilities","http://soap.sforce.com/2006/04/metadata","Capabilities",0,1,true))) {
        setCapabilities((com.sforce.soap.metadata.Capabilities)__typeMapper.readObject(__in, _lookupTypeInfo("capabilities", "http://soap.sforce.com/2006/04/metadata","capabilities","http://soap.sforce.com/2006/04/metadata","Capabilities",0,1,true), com.sforce.soap.metadata.Capabilities.class));
      }
    }

    private void writeFieldCapabilities(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("capabilities", "http://soap.sforce.com/2006/04/metadata","capabilities","http://soap.sforce.com/2006/04/metadata","Capabilities",0,1,true), capabilities, capabilities__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 : isExplicitImport of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean isExplicitImport__is_set = false;

    private boolean isExplicitImport;

    public boolean getIsExplicitImport() {
      return isExplicitImport;
    }

    public boolean isIsExplicitImport() {
      return isExplicitImport;
    }

    public void setIsExplicitImport(boolean isExplicitImport) {
      this.isExplicitImport = isExplicitImport;
      isExplicitImport__is_set = true;
    }

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

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

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

    private boolean isExposed;

    public boolean getIsExposed() {
      return isExposed;
    }

    public boolean isIsExposed() {
      return isExposed;
    }

    public void setIsExposed(boolean isExposed) {
      this.isExposed = isExposed;
      isExposed__is_set = true;
    }

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

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

    /**
     * element : lwcResources of type {http://soap.sforce.com/2006/04/metadata}LwcResources
     * java type: com.sforce.soap.metadata.LwcResources
     */
    private boolean lwcResources__is_set = false;

    private com.sforce.soap.metadata.LwcResources lwcResources;

    public com.sforce.soap.metadata.LwcResources getLwcResources() {
      return lwcResources;
    }

    public void setLwcResources(com.sforce.soap.metadata.LwcResources lwcResources) {
      this.lwcResources = lwcResources;
      lwcResources__is_set = true;
    }

    protected void setLwcResources(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("lwcResources", "http://soap.sforce.com/2006/04/metadata","lwcResources","http://soap.sforce.com/2006/04/metadata","LwcResources",0,1,true))) {
        setLwcResources((com.sforce.soap.metadata.LwcResources)__typeMapper.readObject(__in, _lookupTypeInfo("lwcResources", "http://soap.sforce.com/2006/04/metadata","lwcResources","http://soap.sforce.com/2006/04/metadata","LwcResources",0,1,true), com.sforce.soap.metadata.LwcResources.class));
      }
    }

    private void writeFieldLwcResources(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("lwcResources", "http://soap.sforce.com/2006/04/metadata","lwcResources","http://soap.sforce.com/2006/04/metadata","LwcResources",0,1,true), lwcResources, lwcResources__is_set);
    }

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

    private java.lang.String masterLabel;

    public java.lang.String getMasterLabel() {
      return masterLabel;
    }

    public void setMasterLabel(java.lang.String masterLabel) {
      this.masterLabel = masterLabel;
      masterLabel__is_set = true;
    }

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

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

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

    private java.lang.String runtimeNamespace;

    public java.lang.String getRuntimeNamespace() {
      return runtimeNamespace;
    }

    public void setRuntimeNamespace(java.lang.String runtimeNamespace) {
      this.runtimeNamespace = runtimeNamespace;
      runtimeNamespace__is_set = true;
    }

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

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

    /**
     * element : targetConfigs of type {http://www.w3.org/2001/XMLSchema}base64Binary
     * java type: byte[]
     */
    private boolean targetConfigs__is_set = false;

    private byte[] targetConfigs;

    public byte[] getTargetConfigs() {
      return targetConfigs;
    }

    public void setTargetConfigs(byte[] targetConfigs) {
      this.targetConfigs = targetConfigs;
      targetConfigs__is_set = true;
    }

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

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

    /**
     * element : targets of type {http://soap.sforce.com/2006/04/metadata}Targets
     * java type: com.sforce.soap.metadata.Targets
     */
    private boolean targets__is_set = false;

    private com.sforce.soap.metadata.Targets targets;

    public com.sforce.soap.metadata.Targets getTargets() {
      return targets;
    }

    public void setTargets(com.sforce.soap.metadata.Targets targets) {
      this.targets = targets;
      targets__is_set = true;
    }

    protected void setTargets(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("targets", "http://soap.sforce.com/2006/04/metadata","targets","http://soap.sforce.com/2006/04/metadata","Targets",0,1,true))) {
        setTargets((com.sforce.soap.metadata.Targets)__typeMapper.readObject(__in, _lookupTypeInfo("targets", "http://soap.sforce.com/2006/04/metadata","targets","http://soap.sforce.com/2006/04/metadata","Targets",0,1,true), com.sforce.soap.metadata.Targets.class));
      }
    }

    private void writeFieldTargets(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("targets", "http://soap.sforce.com/2006/04/metadata","targets","http://soap.sforce.com/2006/04/metadata","Targets",0,1,true), targets, targets__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());
      __typeMapper.writeXsiType(__out, "http://soap.sforce.com/2006/04/metadata", "LightningComponentBundle");
      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);
       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 {
        super.loadFields(__in, __typeMapper);
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[LightningComponentBundle ");
      sb.append(super.toString());
      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 {
      writeFieldApiVersion(__out, __typeMapper);
      writeFieldCapabilities(__out, __typeMapper);
      writeFieldDescription(__out, __typeMapper);
      writeFieldIsExplicitImport(__out, __typeMapper);
      writeFieldIsExposed(__out, __typeMapper);
      writeFieldLwcResources(__out, __typeMapper);
      writeFieldMasterLabel(__out, __typeMapper);
      writeFieldRuntimeNamespace(__out, __typeMapper);
      writeFieldTargetConfigs(__out, __typeMapper);
      writeFieldTargets(__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 {
      setApiVersion(__in, __typeMapper);
      setCapabilities(__in, __typeMapper);
      setDescription(__in, __typeMapper);
      setIsExplicitImport(__in, __typeMapper);
      setIsExposed(__in, __typeMapper);
      setLwcResources(__in, __typeMapper);
      setMasterLabel(__in, __typeMapper);
      setRuntimeNamespace(__in, __typeMapper);
      setTargetConfigs(__in, __typeMapper);
      setTargets(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "apiVersion", apiVersion);
      toStringHelper(sb, "capabilities", capabilities);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "isExplicitImport", isExplicitImport);
      toStringHelper(sb, "isExposed", isExposed);
      toStringHelper(sb, "lwcResources", lwcResources);
      toStringHelper(sb, "masterLabel", masterLabel);
      toStringHelper(sb, "runtimeNamespace", runtimeNamespace);
      toStringHelper(sb, "targetConfigs", targetConfigs);
      toStringHelper(sb, "targets", targets);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy