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

com.mntviews.jreport.JRParam Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.mntviews.jreport;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type",defaultImpl = JRParamStr.class)
@JsonSubTypes({
        @JsonSubTypes.Type(value = JRParamStr.class),
        @JsonSubTypes.Type(value = JRParamNum.class)
})
public abstract class JRParam {
    @JsonProperty("key")
    protected final String key;

    protected JRParam(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public abstract JRParam clone();

    public abstract Object getVal();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy