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

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

There is a newer version: 0.7.9
Show newest version
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;

	public ApplicationFieldSettings() {
		super();
	}

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

	@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;
	}

	@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);
	}

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy