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 LicenseDefinition extends com.sforce.soap.metadata.Metadata { /** * Constructor */ public LicenseDefinition() {} /* 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 : aggregationGroup of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean aggregationGroup__is_set = false; private java.lang.String aggregationGroup; public java.lang.String getAggregationGroup() { return aggregationGroup; } public void setAggregationGroup(java.lang.String aggregationGroup) { this.aggregationGroup = aggregationGroup; aggregationGroup__is_set = true; } protected void setAggregationGroup(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("aggregationGroup", "http://soap.sforce.com/2006/04/metadata","aggregationGroup","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setAggregationGroup(__typeMapper.readString(__in, _lookupTypeInfo("aggregationGroup", "http://soap.sforce.com/2006/04/metadata","aggregationGroup","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldAggregationGroup(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("aggregationGroup", "http://soap.sforce.com/2006/04/metadata","aggregationGroup","http://www.w3.org/2001/XMLSchema","string",1,1,true), aggregationGroup, aggregationGroup__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 : isPublished of type {http://www.w3.org/2001/XMLSchema}boolean * java type: boolean */ private boolean isPublished__is_set = false; private boolean isPublished; public boolean getIsPublished() { return isPublished; } public boolean isIsPublished() { return isPublished; } public void setIsPublished(boolean isPublished) { this.isPublished = isPublished; isPublished__is_set = true; } protected void setIsPublished(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("isPublished", "http://soap.sforce.com/2006/04/metadata","isPublished","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) { setIsPublished(__typeMapper.readBoolean(__in, _lookupTypeInfo("isPublished", "http://soap.sforce.com/2006/04/metadata","isPublished","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class)); } } private void writeFieldIsPublished(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("isPublished", "http://soap.sforce.com/2006/04/metadata","isPublished","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), isPublished, isPublished__is_set); } /** * element : label of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean label__is_set = false; private java.lang.String label; public java.lang.String getLabel() { return label; } public void setLabel(java.lang.String label) { this.label = label; label__is_set = true; } protected void setLabel(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("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), label, label__is_set); } /** * element : licensedCustomPermissions of type {http://soap.sforce.com/2006/04/metadata}LicensedCustomPermissions * java type: com.sforce.soap.metadata.LicensedCustomPermissions[] */ private boolean licensedCustomPermissions__is_set = false; private com.sforce.soap.metadata.LicensedCustomPermissions[] licensedCustomPermissions = new com.sforce.soap.metadata.LicensedCustomPermissions[0]; public com.sforce.soap.metadata.LicensedCustomPermissions[] getLicensedCustomPermissions() { return licensedCustomPermissions; } public void setLicensedCustomPermissions(com.sforce.soap.metadata.LicensedCustomPermissions[] licensedCustomPermissions) { this.licensedCustomPermissions = licensedCustomPermissions; licensedCustomPermissions__is_set = true; } protected void setLicensedCustomPermissions(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("licensedCustomPermissions", "http://soap.sforce.com/2006/04/metadata","licensedCustomPermissions","http://soap.sforce.com/2006/04/metadata","LicensedCustomPermissions",0,-1,true))) { setLicensedCustomPermissions((com.sforce.soap.metadata.LicensedCustomPermissions[])__typeMapper.readObject(__in, _lookupTypeInfo("licensedCustomPermissions", "http://soap.sforce.com/2006/04/metadata","licensedCustomPermissions","http://soap.sforce.com/2006/04/metadata","LicensedCustomPermissions",0,-1,true), com.sforce.soap.metadata.LicensedCustomPermissions[].class)); } } private void writeFieldLicensedCustomPermissions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("licensedCustomPermissions", "http://soap.sforce.com/2006/04/metadata","licensedCustomPermissions","http://soap.sforce.com/2006/04/metadata","LicensedCustomPermissions",0,-1,true), licensedCustomPermissions, licensedCustomPermissions__is_set); } /** * element : licensingAuthority of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean licensingAuthority__is_set = false; private java.lang.String licensingAuthority; public java.lang.String getLicensingAuthority() { return licensingAuthority; } public void setLicensingAuthority(java.lang.String licensingAuthority) { this.licensingAuthority = licensingAuthority; licensingAuthority__is_set = true; } protected void setLicensingAuthority(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("licensingAuthority", "http://soap.sforce.com/2006/04/metadata","licensingAuthority","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setLicensingAuthority(__typeMapper.readString(__in, _lookupTypeInfo("licensingAuthority", "http://soap.sforce.com/2006/04/metadata","licensingAuthority","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldLicensingAuthority(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("licensingAuthority", "http://soap.sforce.com/2006/04/metadata","licensingAuthority","http://www.w3.org/2001/XMLSchema","string",1,1,true), licensingAuthority, licensingAuthority__is_set); } /** * element : licensingAuthorityProvider of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean licensingAuthorityProvider__is_set = false; private java.lang.String licensingAuthorityProvider; public java.lang.String getLicensingAuthorityProvider() { return licensingAuthorityProvider; } public void setLicensingAuthorityProvider(java.lang.String licensingAuthorityProvider) { this.licensingAuthorityProvider = licensingAuthorityProvider; licensingAuthorityProvider__is_set = true; } protected void setLicensingAuthorityProvider(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("licensingAuthorityProvider", "http://soap.sforce.com/2006/04/metadata","licensingAuthorityProvider","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setLicensingAuthorityProvider(__typeMapper.readString(__in, _lookupTypeInfo("licensingAuthorityProvider", "http://soap.sforce.com/2006/04/metadata","licensingAuthorityProvider","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldLicensingAuthorityProvider(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("licensingAuthorityProvider", "http://soap.sforce.com/2006/04/metadata","licensingAuthorityProvider","http://www.w3.org/2001/XMLSchema","string",1,1,true), licensingAuthorityProvider, licensingAuthorityProvider__is_set); } /** * element : minPlatformVersion of type {http://www.w3.org/2001/XMLSchema}int * java type: int */ private boolean minPlatformVersion__is_set = false; private int minPlatformVersion; public int getMinPlatformVersion() { return minPlatformVersion; } public void setMinPlatformVersion(int minPlatformVersion) { this.minPlatformVersion = minPlatformVersion; minPlatformVersion__is_set = true; } protected void setMinPlatformVersion(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("minPlatformVersion", "http://soap.sforce.com/2006/04/metadata","minPlatformVersion","http://www.w3.org/2001/XMLSchema","int",1,1,true))) { setMinPlatformVersion((int)__typeMapper.readInt(__in, _lookupTypeInfo("minPlatformVersion", "http://soap.sforce.com/2006/04/metadata","minPlatformVersion","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class)); } } private void writeFieldMinPlatformVersion(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("minPlatformVersion", "http://soap.sforce.com/2006/04/metadata","minPlatformVersion","http://www.w3.org/2001/XMLSchema","int",1,1,true), minPlatformVersion, minPlatformVersion__is_set); } /** * element : origin of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean origin__is_set = false; private java.lang.String origin; public java.lang.String getOrigin() { return origin; } public void setOrigin(java.lang.String origin) { this.origin = origin; origin__is_set = true; } protected void setOrigin(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("origin", "http://soap.sforce.com/2006/04/metadata","origin","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setOrigin(__typeMapper.readString(__in, _lookupTypeInfo("origin", "http://soap.sforce.com/2006/04/metadata","origin","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldOrigin(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("origin", "http://soap.sforce.com/2006/04/metadata","origin","http://www.w3.org/2001/XMLSchema","string",1,1,true), origin, origin__is_set); } /** * element : revision of type {http://www.w3.org/2001/XMLSchema}int * java type: int */ private boolean revision__is_set = false; private int revision; public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; revision__is_set = true; } protected void setRevision(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("revision", "http://soap.sforce.com/2006/04/metadata","revision","http://www.w3.org/2001/XMLSchema","int",1,1,true))) { setRevision((int)__typeMapper.readInt(__in, _lookupTypeInfo("revision", "http://soap.sforce.com/2006/04/metadata","revision","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class)); } } private void writeFieldRevision(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("revision", "http://soap.sforce.com/2006/04/metadata","revision","http://www.w3.org/2001/XMLSchema","int",1,1,true), revision, revision__is_set); } /** * element : trialLicenseDuration of type {http://www.w3.org/2001/XMLSchema}int * java type: int */ private boolean trialLicenseDuration__is_set = false; private int trialLicenseDuration; public int getTrialLicenseDuration() { return trialLicenseDuration; } public void setTrialLicenseDuration(int trialLicenseDuration) { this.trialLicenseDuration = trialLicenseDuration; trialLicenseDuration__is_set = true; } protected void setTrialLicenseDuration(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("trialLicenseDuration", "http://soap.sforce.com/2006/04/metadata","trialLicenseDuration","http://www.w3.org/2001/XMLSchema","int",1,1,true))) { setTrialLicenseDuration((int)__typeMapper.readInt(__in, _lookupTypeInfo("trialLicenseDuration", "http://soap.sforce.com/2006/04/metadata","trialLicenseDuration","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class)); } } private void writeFieldTrialLicenseDuration(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("trialLicenseDuration", "http://soap.sforce.com/2006/04/metadata","trialLicenseDuration","http://www.w3.org/2001/XMLSchema","int",1,1,true), trialLicenseDuration, trialLicenseDuration__is_set); } /** * element : trialLicenseQuantity of type {http://www.w3.org/2001/XMLSchema}int * java type: int */ private boolean trialLicenseQuantity__is_set = false; private int trialLicenseQuantity; public int getTrialLicenseQuantity() { return trialLicenseQuantity; } public void setTrialLicenseQuantity(int trialLicenseQuantity) { this.trialLicenseQuantity = trialLicenseQuantity; trialLicenseQuantity__is_set = true; } protected void setTrialLicenseQuantity(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("trialLicenseQuantity", "http://soap.sforce.com/2006/04/metadata","trialLicenseQuantity","http://www.w3.org/2001/XMLSchema","int",1,1,true))) { setTrialLicenseQuantity((int)__typeMapper.readInt(__in, _lookupTypeInfo("trialLicenseQuantity", "http://soap.sforce.com/2006/04/metadata","trialLicenseQuantity","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class)); } } private void writeFieldTrialLicenseQuantity(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("trialLicenseQuantity", "http://soap.sforce.com/2006/04/metadata","trialLicenseQuantity","http://www.w3.org/2001/XMLSchema","int",1,1,true), trialLicenseQuantity, trialLicenseQuantity__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", "LicenseDefinition"); 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("[LicenseDefinition "); 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 { writeFieldAggregationGroup(__out, __typeMapper); writeFieldDescription(__out, __typeMapper); writeFieldIsPublished(__out, __typeMapper); writeFieldLabel(__out, __typeMapper); writeFieldLicensedCustomPermissions(__out, __typeMapper); writeFieldLicensingAuthority(__out, __typeMapper); writeFieldLicensingAuthorityProvider(__out, __typeMapper); writeFieldMinPlatformVersion(__out, __typeMapper); writeFieldOrigin(__out, __typeMapper); writeFieldRevision(__out, __typeMapper); writeFieldTrialLicenseDuration(__out, __typeMapper); writeFieldTrialLicenseQuantity(__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 { setAggregationGroup(__in, __typeMapper); setDescription(__in, __typeMapper); setIsPublished(__in, __typeMapper); setLabel(__in, __typeMapper); setLicensedCustomPermissions(__in, __typeMapper); setLicensingAuthority(__in, __typeMapper); setLicensingAuthorityProvider(__in, __typeMapper); setMinPlatformVersion(__in, __typeMapper); setOrigin(__in, __typeMapper); setRevision(__in, __typeMapper); setTrialLicenseDuration(__in, __typeMapper); setTrialLicenseQuantity(__in, __typeMapper); } private void toString1(StringBuilder sb) { toStringHelper(sb, "aggregationGroup", aggregationGroup); toStringHelper(sb, "description", description); toStringHelper(sb, "isPublished", isPublished); toStringHelper(sb, "label", label); toStringHelper(sb, "licensedCustomPermissions", licensedCustomPermissions); toStringHelper(sb, "licensingAuthority", licensingAuthority); toStringHelper(sb, "licensingAuthorityProvider", licensingAuthorityProvider); toStringHelper(sb, "minPlatformVersion", minPlatformVersion); toStringHelper(sb, "origin", origin); toStringHelper(sb, "revision", revision); toStringHelper(sb, "trialLicenseDuration", trialLicenseDuration); toStringHelper(sb, "trialLicenseQuantity", trialLicenseQuantity); } }