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

com.evrythng.thng.resource.model.store.action.ThngAction Maven / Gradle / Ivy

There is a newer version: 1.33
Show newest version
/*
 * (c) Copyright 2013 EVRYTHNG Ltd London / Zurich
 * www.evrythng.com
 */
package com.evrythng.thng.resource.model.store.action;

import com.evrythng.commons.annotations.csv.CsvTransient;

/**
 * Base class for actions that contain a product and or a thng.
 **/
public abstract class ThngAction extends Action {

	private static final long serialVersionUID = 7873072067511462166L;

	private String thng;
	public static final String FIELD_THNG = "thng";

	private String product;
	public static final String FIELD_PRODUCT = "product";

	private String shortId;
	private String shortDomain;

	@Override
	public String toString() {
		return super.toString() + ",ThngAction[thng=" + thng + ",product=" + product + ",shortId=" + shortId + "]";
	}

	public String getThng() {
		return thng;
	}

	public void setThng(String thng) {
		this.thng = thng;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	@CsvTransient
	public String getShortId() {
		return shortId;
	}

	public void setShortId(String shortId) {
		this.shortId = shortId;
	}

	@CsvTransient
	public String getShortDomain() {
		return shortDomain;
	}

	public void setShortDomain(String shortDomain) {
		this.shortDomain = shortDomain;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy