
com.unbxd.client.feed.FeedField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbxd-java-sdk Show documentation
Show all versions of unbxd-java-sdk Show documentation
The project is a Unbxd Java Library
package com.unbxd.client.feed;
import java.io.Serializable;
/**
* Created with IntelliJ IDEA.
* User: sourabh
* Date: 07/07/14
* Time: 4:49 PM
* To change this template use File | Settings | File Templates.
*/
public class FeedField implements Serializable {
private String name;
private Object value = null;
private boolean multiValued;
private boolean autoSuggest;
private DataType dataType;
public FeedField(String name, DataType dataType, boolean multiValued, boolean autoSuggest)
{
this.name = name;
this.multiValued = multiValued;
this.dataType = dataType;
this.autoSuggest = autoSuggest;
}
/**
* @return the value for this field. If the field has multiple values, this
* will be a collection.
*/
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isMultiValued() {
return multiValued;
}
public DataType getDataType() {
return dataType;
}
public boolean isAutoSuggest() {
return autoSuggest;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("FeedInputField{");
sb.append("name='").append(name).append('\'');
sb.append(", value=").append(value);
sb.append(", multiValued=").append(multiValued);
sb.append(", dataType=").append(dataType);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy