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

org.jdesktop.beans.EnumerationValue Maven / Gradle / Ivy

package org.jdesktop.beans;



/**
 * Used with the setEnumerationValues method to specify enumerated values for
 * properties
 */
public final class EnumerationValue {
    private String name;
    private Object value;
    private String javaInitializationString;
    
    public EnumerationValue(String name, Object value, String javaInitString) {
        this.name = name;
        this.value = value;
        this.javaInitializationString = javaInitString;
    }
    
    public String getName() {
        return name;
    }
    
    @Override
    public String toString() {
        return name;
    }
    
    public Object getValue() {
        return value;
    }
    
    public String getJavaInitializationString() {
        return javaInitializationString;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy