package com.sforce.soap.tooling.sobject; /** * This is a generated class for the SObject Enterprise API. * Do not edit this file, as your changes will be lost. */ public class OwnerChangeOptionInfo extends com.sforce.soap.tooling.sobject.SObject { /** * Constructor */ public OwnerChangeOptionInfo() {} /* 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 : ChildOwnerChangeOptionInfo of type {urn:tooling.soap.sforce.com}QueryResult * java type: com.sforce.soap.tooling.QueryResult */ private boolean ChildOwnerChangeOptionInfo__is_set = false; private com.sforce.soap.tooling.QueryResult ChildOwnerChangeOptionInfo; public com.sforce.soap.tooling.QueryResult getChildOwnerChangeOptionInfo() { return ChildOwnerChangeOptionInfo; } public void setChildOwnerChangeOptionInfo(com.sforce.soap.tooling.QueryResult ChildOwnerChangeOptionInfo) { this.ChildOwnerChangeOptionInfo = ChildOwnerChangeOptionInfo; ChildOwnerChangeOptionInfo__is_set = true; } protected void setChildOwnerChangeOptionInfo(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("ChildOwnerChangeOptionInfo", "urn:sobject.tooling.soap.sforce.com","ChildOwnerChangeOptionInfo","urn:tooling.soap.sforce.com","QueryResult",0,1,true))) { setChildOwnerChangeOptionInfo((com.sforce.soap.tooling.QueryResult)__typeMapper.readObject(__in, _lookupTypeInfo("ChildOwnerChangeOptionInfo", "urn:sobject.tooling.soap.sforce.com","ChildOwnerChangeOptionInfo","urn:tooling.soap.sforce.com","QueryResult",0,1,true), com.sforce.soap.tooling.QueryResult.class)); } } private void writeFieldChildOwnerChangeOptionInfo(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("ChildOwnerChangeOptionInfo", "urn:sobject.tooling.soap.sforce.com","ChildOwnerChangeOptionInfo","urn:tooling.soap.sforce.com","QueryResult",0,1,true), ChildOwnerChangeOptionInfo, ChildOwnerChangeOptionInfo__is_set); } /** * element : DefaultValue of type {http://www.w3.org/2001/XMLSchema}boolean * java type: java.lang.Boolean */ private boolean DefaultValue__is_set = false; private java.lang.Boolean DefaultValue; public java.lang.Boolean getDefaultValue() { return DefaultValue; } public void setDefaultValue(java.lang.Boolean DefaultValue) { this.DefaultValue = DefaultValue; DefaultValue__is_set = true; } protected void setDefaultValue(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("DefaultValue", "urn:sobject.tooling.soap.sforce.com","DefaultValue","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) { setDefaultValue((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("DefaultValue", "urn:sobject.tooling.soap.sforce.com","DefaultValue","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class)); } } private void writeFieldDefaultValue(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("DefaultValue", "urn:sobject.tooling.soap.sforce.com","DefaultValue","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), DefaultValue, DefaultValue__is_set); } /** * element : DurableId of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean DurableId__is_set = false; private java.lang.String DurableId; public java.lang.String getDurableId() { return DurableId; } public void setDurableId(java.lang.String DurableId) { this.DurableId = DurableId; DurableId__is_set = true; } protected void setDurableId(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("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setDurableId(__typeMapper.readString(__in, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldDurableId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), DurableId, DurableId__is_set); } /** * element : EntityDefinition of type {urn:sobject.tooling.soap.sforce.com}EntityDefinition * java type: com.sforce.soap.tooling.sobject.EntityDefinition */ private boolean EntityDefinition__is_set = false; private com.sforce.soap.tooling.sobject.EntityDefinition EntityDefinition; public com.sforce.soap.tooling.sobject.EntityDefinition getEntityDefinition() { return EntityDefinition; } public void setEntityDefinition(com.sforce.soap.tooling.sobject.EntityDefinition EntityDefinition) { this.EntityDefinition = EntityDefinition; EntityDefinition__is_set = true; } protected void setEntityDefinition(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("EntityDefinition", "urn:sobject.tooling.soap.sforce.com","EntityDefinition","urn:sobject.tooling.soap.sforce.com","EntityDefinition",0,1,true))) { setEntityDefinition((com.sforce.soap.tooling.sobject.EntityDefinition)__typeMapper.readObject(__in, _lookupTypeInfo("EntityDefinition", "urn:sobject.tooling.soap.sforce.com","EntityDefinition","urn:sobject.tooling.soap.sforce.com","EntityDefinition",0,1,true), com.sforce.soap.tooling.sobject.EntityDefinition.class)); } } private void writeFieldEntityDefinition(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("EntityDefinition", "urn:sobject.tooling.soap.sforce.com","EntityDefinition","urn:sobject.tooling.soap.sforce.com","EntityDefinition",0,1,true), EntityDefinition, EntityDefinition__is_set); } /** * element : EntityDefinitionId of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean EntityDefinitionId__is_set = false; private java.lang.String EntityDefinitionId; public java.lang.String getEntityDefinitionId() { return EntityDefinitionId; } public void setEntityDefinitionId(java.lang.String EntityDefinitionId) { this.EntityDefinitionId = EntityDefinitionId; EntityDefinitionId__is_set = true; } protected void setEntityDefinitionId(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("EntityDefinitionId", "urn:sobject.tooling.soap.sforce.com","EntityDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setEntityDefinitionId(__typeMapper.readString(__in, _lookupTypeInfo("EntityDefinitionId", "urn:sobject.tooling.soap.sforce.com","EntityDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldEntityDefinitionId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("EntityDefinitionId", "urn:sobject.tooling.soap.sforce.com","EntityDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true), EntityDefinitionId, EntityDefinitionId__is_set); } /** * element : IsEditable of type {http://www.w3.org/2001/XMLSchema}boolean * java type: java.lang.Boolean */ private boolean IsEditable__is_set = false; private java.lang.Boolean IsEditable; public java.lang.Boolean getIsEditable() { return IsEditable; } public void setIsEditable(java.lang.Boolean IsEditable) { this.IsEditable = IsEditable; IsEditable__is_set = true; } protected void setIsEditable(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("IsEditable", "urn:sobject.tooling.soap.sforce.com","IsEditable","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) { setIsEditable((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsEditable", "urn:sobject.tooling.soap.sforce.com","IsEditable","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class)); } } private void writeFieldIsEditable(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("IsEditable", "urn:sobject.tooling.soap.sforce.com","IsEditable","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsEditable, IsEditable__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.isElement(__in, _lookupTypeInfo("Label", "urn:sobject.tooling.soap.sforce.com","Label","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setLabel(__typeMapper.readString(__in, _lookupTypeInfo("Label", "urn:sobject.tooling.soap.sforce.com","Label","http://www.w3.org/2001/XMLSchema","string",0,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", "urn:sobject.tooling.soap.sforce.com","Label","http://www.w3.org/2001/XMLSchema","string",0,1,true), Label, Label__is_set); } /** * element : Name of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Name__is_set = false; private java.lang.String Name; public java.lang.String getName() { return Name; } public void setName(java.lang.String Name) { this.Name = Name; Name__is_set = true; } protected void setName(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("Name", "urn:sobject.tooling.soap.sforce.com","Name","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setName(__typeMapper.readString(__in, _lookupTypeInfo("Name", "urn:sobject.tooling.soap.sforce.com","Name","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Name", "urn:sobject.tooling.soap.sforce.com","Name","http://www.w3.org/2001/XMLSchema","string",0,1,true), Name, Name__is_set); } /** * element : Parent of type {urn:sobject.tooling.soap.sforce.com}OwnerChangeOptionInfo * java type: com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo */ private boolean Parent__is_set = false; private com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo Parent; public com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo getParent() { return Parent; } public void setParent(com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo Parent) { this.Parent = Parent; Parent__is_set = true; } protected void setParent(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("Parent", "urn:sobject.tooling.soap.sforce.com","Parent","urn:sobject.tooling.soap.sforce.com","OwnerChangeOptionInfo",0,1,true))) { setParent((com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo)__typeMapper.readObject(__in, _lookupTypeInfo("Parent", "urn:sobject.tooling.soap.sforce.com","Parent","urn:sobject.tooling.soap.sforce.com","OwnerChangeOptionInfo",0,1,true), com.sforce.soap.tooling.sobject.OwnerChangeOptionInfo.class)); } } private void writeFieldParent(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Parent", "urn:sobject.tooling.soap.sforce.com","Parent","urn:sobject.tooling.soap.sforce.com","OwnerChangeOptionInfo",0,1,true), Parent, Parent__is_set); } /** * element : ParentId of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean ParentId__is_set = false; private java.lang.String ParentId; public java.lang.String getParentId() { return ParentId; } public void setParentId(java.lang.String ParentId) { this.ParentId = ParentId; ParentId__is_set = true; } protected void setParentId(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("ParentId", "urn:sobject.tooling.soap.sforce.com","ParentId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setParentId(__typeMapper.readString(__in, _lookupTypeInfo("ParentId", "urn:sobject.tooling.soap.sforce.com","ParentId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldParentId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("ParentId", "urn:sobject.tooling.soap.sforce.com","ParentId","http://www.w3.org/2001/XMLSchema","string",0,1,true), ParentId, ParentId__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, "urn:sobject.tooling.soap.sforce.com", "OwnerChangeOptionInfo"); 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("[OwnerChangeOptionInfo "); 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 { writeFieldChildOwnerChangeOptionInfo(__out, __typeMapper); writeFieldDefaultValue(__out, __typeMapper); writeFieldDurableId(__out, __typeMapper); writeFieldEntityDefinition(__out, __typeMapper); writeFieldEntityDefinitionId(__out, __typeMapper); writeFieldIsEditable(__out, __typeMapper); writeFieldLabel(__out, __typeMapper); writeFieldName(__out, __typeMapper); writeFieldParent(__out, __typeMapper); writeFieldParentId(__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 { setChildOwnerChangeOptionInfo(__in, __typeMapper); setDefaultValue(__in, __typeMapper); setDurableId(__in, __typeMapper); setEntityDefinition(__in, __typeMapper); setEntityDefinitionId(__in, __typeMapper); setIsEditable(__in, __typeMapper); setLabel(__in, __typeMapper); setName(__in, __typeMapper); setParent(__in, __typeMapper); setParentId(__in, __typeMapper); } private void toString1(StringBuilder sb) { toStringHelper(sb, "ChildOwnerChangeOptionInfo", ChildOwnerChangeOptionInfo); toStringHelper(sb, "DefaultValue", DefaultValue); toStringHelper(sb, "DurableId", DurableId); toStringHelper(sb, "EntityDefinition", EntityDefinition); toStringHelper(sb, "EntityDefinitionId", EntityDefinitionId); toStringHelper(sb, "IsEditable", IsEditable); toStringHelper(sb, "Label", Label); toStringHelper(sb, "Name", Name); toStringHelper(sb, "Parent", Parent); toStringHelper(sb, "ParentId", ParentId); } }