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 AnalyticsVizField implements com.sforce.ws.bind.XMLizable { /** * Constructor */ public AnalyticsVizField() {} /* 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 : adHocCalc of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean adHocCalc__is_set = false; private java.lang.String adHocCalc; public java.lang.String getAdHocCalc() { return adHocCalc; } public void setAdHocCalc(java.lang.String adHocCalc) { this.adHocCalc = adHocCalc; adHocCalc__is_set = true; } protected void setAdHocCalc(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("adHocCalc", "http://soap.sforce.com/2006/04/metadata","adHocCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setAdHocCalc(__typeMapper.readString(__in, _lookupTypeInfo("adHocCalc", "http://soap.sforce.com/2006/04/metadata","adHocCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldAdHocCalc(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("adHocCalc", "http://soap.sforce.com/2006/04/metadata","adHocCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true), adHocCalc, adHocCalc__is_set); } /** * element : analyticsVizVersion of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean analyticsVizVersion__is_set = false; private java.lang.String analyticsVizVersion; public java.lang.String getAnalyticsVizVersion() { return analyticsVizVersion; } public void setAnalyticsVizVersion(java.lang.String analyticsVizVersion) { this.analyticsVizVersion = analyticsVizVersion; analyticsVizVersion__is_set = true; } protected void setAnalyticsVizVersion(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("analyticsVizVersion", "http://soap.sforce.com/2006/04/metadata","analyticsVizVersion","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setAnalyticsVizVersion(__typeMapper.readString(__in, _lookupTypeInfo("analyticsVizVersion", "http://soap.sforce.com/2006/04/metadata","analyticsVizVersion","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldAnalyticsVizVersion(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("analyticsVizVersion", "http://soap.sforce.com/2006/04/metadata","analyticsVizVersion","http://www.w3.org/2001/XMLSchema","string",0,1,true), analyticsVizVersion, analyticsVizVersion__is_set); } /** * element : computeUsing of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean computeUsing__is_set = false; private java.lang.String computeUsing; public java.lang.String getComputeUsing() { return computeUsing; } public void setComputeUsing(java.lang.String computeUsing) { this.computeUsing = computeUsing; computeUsing__is_set = true; } protected void setComputeUsing(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("computeUsing", "http://soap.sforce.com/2006/04/metadata","computeUsing","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setComputeUsing(__typeMapper.readString(__in, _lookupTypeInfo("computeUsing", "http://soap.sforce.com/2006/04/metadata","computeUsing","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldComputeUsing(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("computeUsing", "http://soap.sforce.com/2006/04/metadata","computeUsing","http://www.w3.org/2001/XMLSchema","string",0,1,true), computeUsing, computeUsing__is_set); } /** * element : displayCategory of type {http://soap.sforce.com/2006/04/metadata}VisualizationFieldDisplayCategoryType * java type: com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType */ private boolean displayCategory__is_set = false; private com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType displayCategory; public com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType getDisplayCategory() { return displayCategory; } public void setDisplayCategory(com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType displayCategory) { this.displayCategory = displayCategory; displayCategory__is_set = true; } protected void setDisplayCategory(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("displayCategory", "http://soap.sforce.com/2006/04/metadata","displayCategory","http://soap.sforce.com/2006/04/metadata","VisualizationFieldDisplayCategoryType",0,1,true))) { setDisplayCategory((com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType)__typeMapper.readObject(__in, _lookupTypeInfo("displayCategory", "http://soap.sforce.com/2006/04/metadata","displayCategory","http://soap.sforce.com/2006/04/metadata","VisualizationFieldDisplayCategoryType",0,1,true), com.sforce.soap.metadata.VisualizationFieldDisplayCategoryType.class)); } } private void writeFieldDisplayCategory(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("displayCategory", "http://soap.sforce.com/2006/04/metadata","displayCategory","http://soap.sforce.com/2006/04/metadata","VisualizationFieldDisplayCategoryType",0,1,true), displayCategory, displayCategory__is_set); } /** * element : fieldKey of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean fieldKey__is_set = false; private java.lang.String fieldKey; public java.lang.String getFieldKey() { return fieldKey; } public void setFieldKey(java.lang.String fieldKey) { this.fieldKey = fieldKey; fieldKey__is_set = true; } protected void setFieldKey(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("fieldKey", "http://soap.sforce.com/2006/04/metadata","fieldKey","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setFieldKey(__typeMapper.readString(__in, _lookupTypeInfo("fieldKey", "http://soap.sforce.com/2006/04/metadata","fieldKey","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } } private void writeFieldFieldKey(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("fieldKey", "http://soap.sforce.com/2006/04/metadata","fieldKey","http://www.w3.org/2001/XMLSchema","string",1,1,true), fieldKey, fieldKey__is_set); } /** * element : fieldName of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean fieldName__is_set = false; private java.lang.String fieldName; public java.lang.String getFieldName() { return fieldName; } public void setFieldName(java.lang.String fieldName) { this.fieldName = fieldName; fieldName__is_set = true; } protected void setFieldName(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("fieldName", "http://soap.sforce.com/2006/04/metadata","fieldName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setFieldName(__typeMapper.readString(__in, _lookupTypeInfo("fieldName", "http://soap.sforce.com/2006/04/metadata","fieldName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldFieldName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("fieldName", "http://soap.sforce.com/2006/04/metadata","fieldName","http://www.w3.org/2001/XMLSchema","string",0,1,true), fieldName, fieldName__is_set); } /** * element : function of type {http://soap.sforce.com/2006/04/metadata}VisualizationFieldFunctionType * java type: com.sforce.soap.metadata.VisualizationFieldFunctionType */ private boolean function__is_set = false; private com.sforce.soap.metadata.VisualizationFieldFunctionType function; public com.sforce.soap.metadata.VisualizationFieldFunctionType getFunction() { return function; } public void setFunction(com.sforce.soap.metadata.VisualizationFieldFunctionType function) { this.function = function; function__is_set = true; } protected void setFunction(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("function", "http://soap.sforce.com/2006/04/metadata","function","http://soap.sforce.com/2006/04/metadata","VisualizationFieldFunctionType",0,1,true))) { setFunction((com.sforce.soap.metadata.VisualizationFieldFunctionType)__typeMapper.readObject(__in, _lookupTypeInfo("function", "http://soap.sforce.com/2006/04/metadata","function","http://soap.sforce.com/2006/04/metadata","VisualizationFieldFunctionType",0,1,true), com.sforce.soap.metadata.VisualizationFieldFunctionType.class)); } } private void writeFieldFunction(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("function", "http://soap.sforce.com/2006/04/metadata","function","http://soap.sforce.com/2006/04/metadata","VisualizationFieldFunctionType",0,1,true), function, function__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", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","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", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true), label, label__is_set); } /** * element : objectName of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean objectName__is_set = false; private java.lang.String objectName; public java.lang.String getObjectName() { return objectName; } public void setObjectName(java.lang.String objectName) { this.objectName = objectName; objectName__is_set = true; } protected void setObjectName(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("objectName", "http://soap.sforce.com/2006/04/metadata","objectName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setObjectName(__typeMapper.readString(__in, _lookupTypeInfo("objectName", "http://soap.sforce.com/2006/04/metadata","objectName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldObjectName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("objectName", "http://soap.sforce.com/2006/04/metadata","objectName","http://www.w3.org/2001/XMLSchema","string",0,1,true), objectName, objectName__is_set); } /** * element : quickTableCalc of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean quickTableCalc__is_set = false; private java.lang.String quickTableCalc; public java.lang.String getQuickTableCalc() { return quickTableCalc; } public void setQuickTableCalc(java.lang.String quickTableCalc) { this.quickTableCalc = quickTableCalc; quickTableCalc__is_set = true; } protected void setQuickTableCalc(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("quickTableCalc", "http://soap.sforce.com/2006/04/metadata","quickTableCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setQuickTableCalc(__typeMapper.readString(__in, _lookupTypeInfo("quickTableCalc", "http://soap.sforce.com/2006/04/metadata","quickTableCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldQuickTableCalc(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("quickTableCalc", "http://soap.sforce.com/2006/04/metadata","quickTableCalc","http://www.w3.org/2001/XMLSchema","string",0,1,true), quickTableCalc, quickTableCalc__is_set); } /** * element : role of type {http://soap.sforce.com/2006/04/metadata}VisualizationFieldRoleType * java type: com.sforce.soap.metadata.VisualizationFieldRoleType */ private boolean role__is_set = false; private com.sforce.soap.metadata.VisualizationFieldRoleType role; public com.sforce.soap.metadata.VisualizationFieldRoleType getRole() { return role; } public void setRole(com.sforce.soap.metadata.VisualizationFieldRoleType role) { this.role = role; role__is_set = true; } protected void setRole(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("role", "http://soap.sforce.com/2006/04/metadata","role","http://soap.sforce.com/2006/04/metadata","VisualizationFieldRoleType",0,1,true))) { setRole((com.sforce.soap.metadata.VisualizationFieldRoleType)__typeMapper.readObject(__in, _lookupTypeInfo("role", "http://soap.sforce.com/2006/04/metadata","role","http://soap.sforce.com/2006/04/metadata","VisualizationFieldRoleType",0,1,true), com.sforce.soap.metadata.VisualizationFieldRoleType.class)); } } private void writeFieldRole(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("role", "http://soap.sforce.com/2006/04/metadata","role","http://soap.sforce.com/2006/04/metadata","VisualizationFieldRoleType",0,1,true), role, role__is_set); } /** * element : type of type {http://soap.sforce.com/2006/04/metadata}VisualizationFieldType * java type: com.sforce.soap.metadata.VisualizationFieldType */ private boolean type__is_set = false; private com.sforce.soap.metadata.VisualizationFieldType type; public com.sforce.soap.metadata.VisualizationFieldType getType() { return type; } public void setType(com.sforce.soap.metadata.VisualizationFieldType type) { this.type = type; type__is_set = true; } protected void setType(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("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","VisualizationFieldType",0,1,true))) { setType((com.sforce.soap.metadata.VisualizationFieldType)__typeMapper.readObject(__in, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","VisualizationFieldType",0,1,true), com.sforce.soap.metadata.VisualizationFieldType.class)); } } private void writeFieldType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","VisualizationFieldType",0,1,true), type, type__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()); 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 { 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 { loadFields1(__in, __typeMapper); } @Override public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("[AnalyticsVizField "); 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 { writeFieldAdHocCalc(__out, __typeMapper); writeFieldAnalyticsVizVersion(__out, __typeMapper); writeFieldComputeUsing(__out, __typeMapper); writeFieldDisplayCategory(__out, __typeMapper); writeFieldFieldKey(__out, __typeMapper); writeFieldFieldName(__out, __typeMapper); writeFieldFunction(__out, __typeMapper); writeFieldLabel(__out, __typeMapper); writeFieldObjectName(__out, __typeMapper); writeFieldQuickTableCalc(__out, __typeMapper); writeFieldRole(__out, __typeMapper); writeFieldType(__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 { setAdHocCalc(__in, __typeMapper); setAnalyticsVizVersion(__in, __typeMapper); setComputeUsing(__in, __typeMapper); setDisplayCategory(__in, __typeMapper); setFieldKey(__in, __typeMapper); setFieldName(__in, __typeMapper); setFunction(__in, __typeMapper); setLabel(__in, __typeMapper); setObjectName(__in, __typeMapper); setQuickTableCalc(__in, __typeMapper); setRole(__in, __typeMapper); setType(__in, __typeMapper); } private void toString1(StringBuilder sb) { toStringHelper(sb, "adHocCalc", adHocCalc); toStringHelper(sb, "analyticsVizVersion", analyticsVizVersion); toStringHelper(sb, "computeUsing", computeUsing); toStringHelper(sb, "displayCategory", displayCategory); toStringHelper(sb, "fieldKey", fieldKey); toStringHelper(sb, "fieldName", fieldName); toStringHelper(sb, "function", function); toStringHelper(sb, "label", label); toStringHelper(sb, "objectName", objectName); toStringHelper(sb, "quickTableCalc", quickTableCalc); toStringHelper(sb, "role", role); toStringHelper(sb, "type", type); } }