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

step.core.entities.Bean Maven / Gradle / Ivy

The newest version!
package step.core.entities;

import jakarta.json.JsonObject;

import org.json.JSONObject;

import step.core.accessors.AbstractOrganizableObject;
import step.core.collections.serialization.DottedKeyMap;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;

@JsonTypeInfo(use=Id.CLASS,property="_class")
public class Bean extends AbstractOrganizableObject {

    private String property1;
    private Long longProperty;
    private boolean booleanProperty;

    private JsonObject jsonObject;

    private JSONObject jsonOrgObject;

    private DottedKeyMap map;

    private List list;

    private Bean nested;
    private SimpleBean simpleBean;

    public Bean() {
        super();
    }

    public Bean(String property1) {
        super();
        this.property1 = property1;
    }

    public String getProperty1() {
        return property1;
    }

    public void setProperty1(String property1) {
        this.property1 = property1;
    }

    public Long getLongProperty() {
		return longProperty;
	}

	public void setLongProperty(Long longProperty) {
		this.longProperty = longProperty;
	}

	public boolean isBooleanProperty() {
		return booleanProperty;
	}

	public void setBooleanProperty(boolean booleanProperty) {
		this.booleanProperty = booleanProperty;
	}

	public JsonObject getJsonObject() {
        return jsonObject;
    }

    public DottedKeyMap getMap() {
        return map;
    }

    public void setMap(DottedKeyMap map) {
        this.map = map;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public void setJsonObject(JsonObject jsonObject) {
        this.jsonObject = jsonObject;
    }

    public JSONObject getJsonOrgObject() {
        return jsonOrgObject;
    }

    public void setJsonOrgObject(JSONObject jsonOrgObject) {
        this.jsonOrgObject = jsonOrgObject;
    }

    public Bean getNested() {
        return nested;
    }

    public void setNested(Bean nested) {
        this.nested = nested;
    }

    public SimpleBean getSimpleBean() {
		return simpleBean;
	}

	public void setSimpleBean(SimpleBean simpleBean) {
		this.simpleBean = simpleBean;
	}

	@Override
    public String toString() {
        return this.getId().toHexString();
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy