All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.podio.app.ApplicationFieldSettings Maven / Gradle / Ivy

package com.podio.app;

import java.util.List;

import org.codehaus.jackson.annotate.JsonProperty;

public class ApplicationFieldSettings {

	private TextFieldSize size;

	private List allowedValues;

	private List referenceableTypes;

	private List allowedCurrencies;

	private List options;

	private Boolean multiple;

	public ApplicationFieldSettings() {
		super();
	}

	public ApplicationFieldSettings(TextFieldSize size,
			List allowedValues, List referenceableTypes,
			List allowedCurrencies, List options,
			Boolean multiple) {
		super();
		this.size = size;
		this.allowedValues = allowedValues;
		this.referenceableTypes = referenceableTypes;
		this.allowedCurrencies = allowedCurrencies;
		this.options = options;
		this.multiple = multiple;
	}

	@JsonProperty("size")
	public TextFieldSize getSize() {
		return size;
	}

	@JsonProperty("size")
	public void setSize(TextFieldSize size) {
		this.size = size;
	}

	@JsonProperty("allowed_values")
	public List getAllowedValues() {
		return allowedValues;
	}

	@JsonProperty("allowed_values")
	public void setAllowedValues(List allowedValues) {
		this.allowedValues = allowedValues;
	}

	@JsonProperty("referenceable_types")
	public List getReferenceableTypes() {
		return referenceableTypes;
	}

	@JsonProperty("referenceable_types")
	public void setReferenceableTypes(List referenceableTypes) {
		this.referenceableTypes = referenceableTypes;
	}

	@JsonProperty("allowed_currencies")
	public List getAllowedCurrencies() {
		return allowedCurrencies;
	}

	@JsonProperty("allowed_currencies")
	public void setAllowedCurrencies(List allowedCurrencies) {
		this.allowedCurrencies = allowedCurrencies;
	}

	public List getOptions() {
		return options;
	}

	public void setOptions(List options) {
		this.options = options;
	}

	public Boolean getMultiple() {
		return multiple;
	}

	public void setMultiple(Boolean multiple) {
		this.multiple = multiple;
	}

	@Override
	public String toString() {
		return "ApplicationFieldSettings [allowedValues=" + allowedValues
				+ ", referenceableTypes=" + referenceableTypes
				+ ", allowedCurrencies=" + allowedCurrencies + "]";
	}

	public static ApplicationFieldSettings getState(List allowedValues) {
		return new ApplicationFieldSettings(null, allowedValues, null, null,
				null, null);
	}

	public static ApplicationFieldSettings getApp(
			List referenceableTypes) {
		return new ApplicationFieldSettings(null, null, referenceableTypes,
				null, null, null);
	}

	public static ApplicationFieldSettings getText(TextFieldSize size) {
		return new ApplicationFieldSettings(size, null, null, null, null, null);
	}

	public static ApplicationFieldSettings getMoney(
			List allowedCurrencies) {
		return new ApplicationFieldSettings(null, null, null,
				allowedCurrencies, null, null);
	}

	public static ApplicationFieldSettings getCategory(
			List options, boolean multiple) {
		return new ApplicationFieldSettings(null, null, null, null, options,
				multiple);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy