com.sforce.soap.tooling.CustomField Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class CustomField extends com.sforce.soap.tooling.SObject {
/**
* Constructor
*/
public CustomField() {}
/**
* element : DeveloperName of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo DeveloperName__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","DeveloperName","http://www.w3.org/2001/XMLSchema","string",0,1,true);
private boolean DeveloperName__is_set = false;
private java.lang.String DeveloperName;
public java.lang.String getDeveloperName() {
return DeveloperName;
}
public void setDeveloperName(java.lang.String DeveloperName) {
this.DeveloperName = DeveloperName;
DeveloperName__is_set = true;
}
/**
* element : FullName of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo FullName__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","FullName","http://www.w3.org/2001/XMLSchema","string",0,1,true);
private boolean FullName__is_set = false;
private java.lang.String FullName;
public java.lang.String getFullName() {
return FullName;
}
public void setFullName(java.lang.String FullName) {
this.FullName = FullName;
FullName__is_set = true;
}
/**
* element : Metadata of type {urn:tooling.soap.sforce.com}CustomFieldMetadata
* java type: com.sforce.soap.tooling.CustomFieldMetadata
*/
private static final com.sforce.ws.bind.TypeInfo Metadata__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","Metadata","urn:tooling.soap.sforce.com","CustomFieldMetadata",0,1,true);
private boolean Metadata__is_set = false;
private com.sforce.soap.tooling.CustomFieldMetadata Metadata;
public com.sforce.soap.tooling.CustomFieldMetadata getMetadata() {
return Metadata;
}
public void setMetadata(com.sforce.soap.tooling.CustomFieldMetadata Metadata) {
this.Metadata = Metadata;
Metadata__is_set = true;
}
/**
* element : NamespacePrefix of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo NamespacePrefix__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","NamespacePrefix","http://www.w3.org/2001/XMLSchema","string",0,1,true);
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;
}
/**
* element : TableEnumOrId of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo TableEnumOrId__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","TableEnumOrId","http://www.w3.org/2001/XMLSchema","string",0,1,true);
private boolean TableEnumOrId__is_set = false;
private java.lang.String TableEnumOrId;
public java.lang.String getTableEnumOrId() {
return TableEnumOrId;
}
public void setTableEnumOrId(java.lang.String TableEnumOrId) {
this.TableEnumOrId = TableEnumOrId;
TableEnumOrId__is_set = true;
}
/**
*/
@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:tooling.soap.sforce.com", "CustomField");
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);
__typeMapper.writeString(__out, DeveloperName__typeInfo, DeveloperName, DeveloperName__is_set);
__typeMapper.writeString(__out, FullName__typeInfo, FullName, FullName__is_set);
__typeMapper.writeObject(__out, Metadata__typeInfo, Metadata, Metadata__is_set);
__typeMapper.writeString(__out, NamespacePrefix__typeInfo, NamespacePrefix, NamespacePrefix__is_set);
__typeMapper.writeString(__out, TableEnumOrId__typeInfo, TableEnumOrId, TableEnumOrId__is_set);
}
@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);
__in.peekTag();
if (__typeMapper.isElement(__in, DeveloperName__typeInfo)) {
setDeveloperName(__typeMapper.readString(__in, DeveloperName__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, FullName__typeInfo)) {
setFullName(__typeMapper.readString(__in, FullName__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, Metadata__typeInfo)) {
setMetadata((com.sforce.soap.tooling.CustomFieldMetadata)__typeMapper.readObject(__in, Metadata__typeInfo, com.sforce.soap.tooling.CustomFieldMetadata.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, NamespacePrefix__typeInfo)) {
setNamespacePrefix(__typeMapper.readString(__in, NamespacePrefix__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, TableEnumOrId__typeInfo)) {
setTableEnumOrId(__typeMapper.readString(__in, TableEnumOrId__typeInfo, java.lang.String.class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[CustomField ");
sb.append(super.toString());sb.append(" DeveloperName=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(DeveloperName)+"'\n");
sb.append(" FullName=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(FullName)+"'\n");
sb.append(" Metadata=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(Metadata)+"'\n");
sb.append(" NamespacePrefix=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(NamespacePrefix)+"'\n");
sb.append(" TableEnumOrId=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(TableEnumOrId)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy