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

com.astamuse.asta4d.data.ContextDataHolder Maven / Gradle / Ivy

Go to download

core functionalities of asta4d framework, including template and snippt implemention

There is a newer version: 1.2-M2
Show newest version
package com.astamuse.asta4d.data;

import java.io.Serializable;

public class ContextDataHolder implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private String name;

    private String scope;

    private Object foundOriginalData;

    private T value;

    private Class typeCls;

    public ContextDataHolder() {
        super();
    }

    public ContextDataHolder(Class typeCls) {
        super();
        this.typeCls = typeCls;
    }

    public ContextDataHolder(String name, String scope, T value) {
        super();
        this.name = name;
        this.scope = scope;
        this.value = value;
        this.foundOriginalData = value;
    }

    public String getName() {
        return name;
    }

    public String getScope() {
        return scope;
    }

    public Object getFoundOriginalData() {
        return foundOriginalData;
    }

    public T getValue() {
        return value;
    }

    public Class getTypeCls() {
        return typeCls;
    }

    public void setData(String name, String scope, T value) {
        setData(name, scope, value, value);
    }

    public void setData(String name, String scope, Object foundValue, T transformedValue) {
        this.name = name;
        this.scope = scope;
        this.value = transformedValue;
        this.foundOriginalData = foundValue;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy