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

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

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

    /* 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 : apiAccessLevel of type {http://soap.sforce.com/2006/04/metadata}APIAccessLevel
     * java type: com.sforce.soap.metadata.APIAccessLevel
     */
    private boolean apiAccessLevel__is_set = false;

    private com.sforce.soap.metadata.APIAccessLevel apiAccessLevel;

    public com.sforce.soap.metadata.APIAccessLevel getApiAccessLevel() {
      return apiAccessLevel;
    }

    public void setApiAccessLevel(com.sforce.soap.metadata.APIAccessLevel apiAccessLevel) {
      this.apiAccessLevel = apiAccessLevel;
      apiAccessLevel__is_set = true;
    }

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

    private void writeFieldApiAccessLevel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("apiAccessLevel", "http://soap.sforce.com/2006/04/metadata","apiAccessLevel","http://soap.sforce.com/2006/04/metadata","APIAccessLevel",0,1,true), apiAccessLevel, apiAccessLevel__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 : namespacePrefix of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean namespacePrefix__is_set = false;

    private java.lang.String namespacePrefix;

    public java.lang.String getNamespacePrefix() {
      return namespacePrefix;
    }

    public void setNamespacePrefix(java.lang.String namespacePrefix) {
      this.namespacePrefix = namespacePrefix;
      namespacePrefix__is_set = true;
    }

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

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

    /**
     * element : objectPermissions of type {http://soap.sforce.com/2006/04/metadata}ProfileObjectPermissions
     * java type: com.sforce.soap.metadata.ProfileObjectPermissions[]
     */
    private boolean objectPermissions__is_set = false;

    private com.sforce.soap.metadata.ProfileObjectPermissions[] objectPermissions = new com.sforce.soap.metadata.ProfileObjectPermissions[0];

    public com.sforce.soap.metadata.ProfileObjectPermissions[] getObjectPermissions() {
      return objectPermissions;
    }

    public void setObjectPermissions(com.sforce.soap.metadata.ProfileObjectPermissions[] objectPermissions) {
      this.objectPermissions = objectPermissions;
      objectPermissions__is_set = true;
    }

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

    private void writeFieldObjectPermissions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("objectPermissions", "http://soap.sforce.com/2006/04/metadata","objectPermissions","http://soap.sforce.com/2006/04/metadata","ProfileObjectPermissions",0,-1,true), objectPermissions, objectPermissions__is_set);
    }

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

    private java.lang.String packageType;

    public java.lang.String getPackageType() {
      return packageType;
    }

    public void setPackageType(java.lang.String packageType) {
      this.packageType = packageType;
      packageType__is_set = true;
    }

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

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

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

    private java.lang.String postInstallClass;

    public java.lang.String getPostInstallClass() {
      return postInstallClass;
    }

    public void setPostInstallClass(java.lang.String postInstallClass) {
      this.postInstallClass = postInstallClass;
      postInstallClass__is_set = true;
    }

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

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

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

    private java.lang.String setupWeblink;

    public java.lang.String getSetupWeblink() {
      return setupWeblink;
    }

    public void setSetupWeblink(java.lang.String setupWeblink) {
      this.setupWeblink = setupWeblink;
      setupWeblink__is_set = true;
    }

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

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

    /**
     * element : types of type {http://soap.sforce.com/2006/04/metadata}PackageTypeMembers
     * java type: com.sforce.soap.metadata.PackageTypeMembers[]
     */
    private boolean types__is_set = false;

    private com.sforce.soap.metadata.PackageTypeMembers[] types = new com.sforce.soap.metadata.PackageTypeMembers[0];

    public com.sforce.soap.metadata.PackageTypeMembers[] getTypes() {
      return types;
    }

    public void setTypes(com.sforce.soap.metadata.PackageTypeMembers[] types) {
      this.types = types;
      types__is_set = true;
    }

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

    private void writeFieldTypes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("types", "http://soap.sforce.com/2006/04/metadata","types","http://soap.sforce.com/2006/04/metadata","PackageTypeMembers",0,-1,true), types, types__is_set);
    }

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

    private java.lang.String uninstallClass;

    public java.lang.String getUninstallClass() {
      return uninstallClass;
    }

    public void setUninstallClass(java.lang.String uninstallClass) {
      this.uninstallClass = uninstallClass;
      uninstallClass__is_set = true;
    }

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

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

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

    private java.lang.String version;

    public java.lang.String getVersion() {
      return version;
    }

    public void setVersion(java.lang.String version) {
      this.version = version;
      version__is_set = true;
    }

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

    private void writeFieldVersion(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("version", "http://soap.sforce.com/2006/04/metadata","version","http://www.w3.org/2001/XMLSchema","string",1,1,true), version, version__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", "Package");
      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("[Package ");
      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 {
      writeFieldApiAccessLevel(__out, __typeMapper);
      writeFieldDescription(__out, __typeMapper);
      writeFieldNamespacePrefix(__out, __typeMapper);
      writeFieldObjectPermissions(__out, __typeMapper);
      writeFieldPackageType(__out, __typeMapper);
      writeFieldPostInstallClass(__out, __typeMapper);
      writeFieldSetupWeblink(__out, __typeMapper);
      writeFieldTypes(__out, __typeMapper);
      writeFieldUninstallClass(__out, __typeMapper);
      writeFieldVersion(__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 {
      setApiAccessLevel(__in, __typeMapper);
      setDescription(__in, __typeMapper);
      setNamespacePrefix(__in, __typeMapper);
      setObjectPermissions(__in, __typeMapper);
      setPackageType(__in, __typeMapper);
      setPostInstallClass(__in, __typeMapper);
      setSetupWeblink(__in, __typeMapper);
      setTypes(__in, __typeMapper);
      setUninstallClass(__in, __typeMapper);
      setVersion(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "apiAccessLevel", apiAccessLevel);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "namespacePrefix", namespacePrefix);
      toStringHelper(sb, "objectPermissions", objectPermissions);
      toStringHelper(sb, "packageType", packageType);
      toStringHelper(sb, "postInstallClass", postInstallClass);
      toStringHelper(sb, "setupWeblink", setupWeblink);
      toStringHelper(sb, "types", types);
      toStringHelper(sb, "uninstallClass", uninstallClass);
      toStringHelper(sb, "version", version);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy