178 lines
8.9 KiB
Java
178 lines
8.9 KiB
Java
package com.sforce.soap.tooling.metadata;
|
|
|
|
/**
|
|
* This is a generated class for the SObject Enterprise API.
|
|
* Do not edit this file, as your changes will be lost.
|
|
*/
|
|
public class FlowScreenFieldStyleProperties implements com.sforce.ws.bind.XMLizable {
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public FlowScreenFieldStyleProperties() {}
|
|
|
|
/* Cache the typeInfo instead of declaring static fields throughout*/
|
|
private transient java.util.Map<String, com.sforce.ws.bind.TypeInfo> typeInfoCache = new java.util.HashMap<String, com.sforce.ws.bind.TypeInfo>();
|
|
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 : styleSettings of type {urn:metadata.tooling.soap.sforce.com}FlowScreenStyleSetting
|
|
* java type: com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[]
|
|
*/
|
|
private boolean styleSettings__is_set = false;
|
|
|
|
private com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[] styleSettings = new com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[0];
|
|
|
|
public com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[] getStyleSettings() {
|
|
return styleSettings;
|
|
}
|
|
|
|
public void setStyleSettings(com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[] styleSettings) {
|
|
this.styleSettings = styleSettings;
|
|
styleSettings__is_set = true;
|
|
}
|
|
|
|
protected void setStyleSettings(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("styleSettings", "urn:metadata.tooling.soap.sforce.com","styleSettings","urn:metadata.tooling.soap.sforce.com","FlowScreenStyleSetting",0,-1,true))) {
|
|
setStyleSettings((com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[])__typeMapper.readObject(__in, _lookupTypeInfo("styleSettings", "urn:metadata.tooling.soap.sforce.com","styleSettings","urn:metadata.tooling.soap.sforce.com","FlowScreenStyleSetting",0,-1,true), com.sforce.soap.tooling.metadata.FlowScreenStyleSetting[].class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldStyleSettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("styleSettings", "urn:metadata.tooling.soap.sforce.com","styleSettings","urn:metadata.tooling.soap.sforce.com","FlowScreenStyleSetting",0,-1,true), styleSettings, styleSettings__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : verticalAlignment of type {urn:metadata.tooling.soap.sforce.com}FlowElementReferenceOrValue
|
|
* java type: com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue
|
|
*/
|
|
private boolean verticalAlignment__is_set = false;
|
|
|
|
private com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue verticalAlignment;
|
|
|
|
public com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue getVerticalAlignment() {
|
|
return verticalAlignment;
|
|
}
|
|
|
|
public void setVerticalAlignment(com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue verticalAlignment) {
|
|
this.verticalAlignment = verticalAlignment;
|
|
verticalAlignment__is_set = true;
|
|
}
|
|
|
|
protected void setVerticalAlignment(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("verticalAlignment", "urn:metadata.tooling.soap.sforce.com","verticalAlignment","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true))) {
|
|
setVerticalAlignment((com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue)__typeMapper.readObject(__in, _lookupTypeInfo("verticalAlignment", "urn:metadata.tooling.soap.sforce.com","verticalAlignment","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true), com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldVerticalAlignment(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("verticalAlignment", "urn:metadata.tooling.soap.sforce.com","verticalAlignment","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true), verticalAlignment, verticalAlignment__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : width of type {urn:metadata.tooling.soap.sforce.com}FlowElementReferenceOrValue
|
|
* java type: com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue
|
|
*/
|
|
private boolean width__is_set = false;
|
|
|
|
private com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue width;
|
|
|
|
public com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue getWidth() {
|
|
return width;
|
|
}
|
|
|
|
public void setWidth(com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue width) {
|
|
this.width = width;
|
|
width__is_set = true;
|
|
}
|
|
|
|
protected void setWidth(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("width", "urn:metadata.tooling.soap.sforce.com","width","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true))) {
|
|
setWidth((com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue)__typeMapper.readObject(__in, _lookupTypeInfo("width", "urn:metadata.tooling.soap.sforce.com","width","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true), com.sforce.soap.tooling.metadata.FlowElementReferenceOrValue.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldWidth(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("width", "urn:metadata.tooling.soap.sforce.com","width","urn:metadata.tooling.soap.sforce.com","FlowElementReferenceOrValue",1,1,true), width, width__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("[FlowScreenFieldStyleProperties ");
|
|
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 {
|
|
writeFieldStyleSettings(__out, __typeMapper);
|
|
writeFieldVerticalAlignment(__out, __typeMapper);
|
|
writeFieldWidth(__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 {
|
|
setStyleSettings(__in, __typeMapper);
|
|
setVerticalAlignment(__in, __typeMapper);
|
|
setWidth(__in, __typeMapper);
|
|
}
|
|
|
|
private void toString1(StringBuilder sb) {
|
|
toStringHelper(sb, "styleSettings", styleSettings);
|
|
toStringHelper(sb, "verticalAlignment", verticalAlignment);
|
|
toStringHelper(sb, "width", width);
|
|
}
|
|
|
|
|
|
}
|