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

org.joinedworkz.common.info.DataInfo Maven / Gradle / Ivy

There is a newer version: 1.3.46
Show newest version
package org.joinedworkz.common.info;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import org.joinedworkz.core.model.CmnComplexType;
import org.joinedworkz.core.model.CmnComponent;
import org.joinedworkz.core.model.CmnField;
import org.joinedworkz.core.model.CmnObject;
import org.joinedworkz.core.model.CmnPropertyDefinition;
import org.joinedworkz.core.model.CmnResourceOperation;
import org.joinedworkz.core.model.data.CmnArgument;
import org.joinedworkz.core.model.data.CmnData;
import org.joinedworkz.core.model.data.CmnPathCallSegment;
import org.joinedworkz.core.model.ux.CmnEventHandling;

public class DataInfo {

	private CmnComponent referencedComponent;
	private CmnData data;

	private String name;
	private boolean multiple;
	private boolean itemOfCollection;
	private boolean pageConst;
	private boolean supportPagination;
	private boolean usePagination;

	private String onDataRequestName;

	private CmnComplexType type;
	private List fields;
	private CmnField keyField;
	private CmnPropertyDefinition locationProperty;
	private List resourcePath;
	private Set requiredData;
	private CmnResourceOperation resourceOperation;
	private CmnEventHandling initEventHandling;
	private List queryParameterValues;

	private Object additionalInfo;

	private final List usedBy = new ArrayList();

	public CmnComponent getReferencedComponent() {
		return referencedComponent;
	}

	public void setReferencedComponent(CmnComponent referencedComponent) {
		this.referencedComponent = referencedComponent;
	}

	public CmnData getData() {
		return data;
	}

	public void setData(CmnData data) {
		this.data = data;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CmnComplexType getType() {
		return type;
	}

	public void setType(CmnComplexType type) {
		this.type = type;
	}

	public List getFields() {
		return fields;
	}

	public void setFields(List fields) {
		this.fields = fields;
	}

	public CmnField getKeyField() {
		return keyField;
	}

	public void setKeyField(CmnField keyField) {
		this.keyField = keyField;
	}

	public CmnPropertyDefinition getLocationProperty() {
		return locationProperty;
	}

	public void setLocationProperty(CmnPropertyDefinition locationProperty) {
		this.locationProperty = locationProperty;
	}

	public List getResourcePath() {
		return resourcePath;
	}

	public void setResourcePath(List resourcePath) {
		this.resourcePath = resourcePath;
	}

	public CmnResourceOperation getResourceOperation() {
		return resourceOperation;
	}

	public void setResourceOperation(CmnResourceOperation resourceOperation) {
		this.resourceOperation = resourceOperation;
	}

	public List getQueryParameterValues() {
		return queryParameterValues;
	}

	public void setQueryParameterValues(List queryParameterValues) {
		this.queryParameterValues = queryParameterValues;
	}

	public CmnEventHandling getInitEventHandling() {
		return initEventHandling;
	}

	public void setInitEventHandling(CmnEventHandling initEventHandling) {
		this.initEventHandling = initEventHandling;
	}

	public boolean isMultiple() {
		return multiple;
	}

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

	public boolean isItemOfCollection() {
		return itemOfCollection;
	}

	public void setItemOfCollection(boolean itemOfCollection) {
		this.itemOfCollection = itemOfCollection;
	}

	public boolean isPageConst() {
		return pageConst;
	}

	public void setPageConst(boolean pageConst) {
		this.pageConst = pageConst;
	}

	public List getUsedBy() {
		return usedBy;
	}

	public Set getRequiredData() {
		return requiredData;
	}

	public void setRequiredData(Set requiredData) {
		this.requiredData = requiredData;
	}

	public boolean isWithPagination() {
		return supportPagination && usePagination;
	}

	public boolean isSupportPagination() {
		return supportPagination;
	}

	public void setSupportPagination(boolean supportPagination) {
		this.supportPagination = supportPagination;
	}

	public boolean isUsePagination() {
		return usePagination;
	}

	public void setUsePagination(boolean usePagination) {
		this.usePagination = usePagination;
	}

	public Object getAdditionalInfo() {
		return additionalInfo;
	}

	public void setAdditionalInfo(Object additionalInfo) {
		this.additionalInfo = additionalInfo;
	}

	public String getOnDataRequestName() {
		return onDataRequestName;
	}

	public void setOnDataRequestName(String onDataRequestName) {
		this.onDataRequestName = onDataRequestName;
	}

}