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

com.github.fge.uritemplate.vars.values.VariableValue Maven / Gradle / Ivy

There is a newer version: 0.9
Show newest version
package com.github.fge.uritemplate.vars.values;

import java.util.List;
import java.util.Map;

public abstract class VariableValue
{
    protected final ValueType type;

    protected VariableValue(final ValueType type)
    {
        this.type = type;
    }

    public final ValueType getType()
    {
        return type;
    }

    public String getScalarValue()
    {
        throw new IllegalStateException();
    }

    public List getListValue()
    {
        throw new IllegalStateException();
    }

    public Map getMapValue()
    {
        throw new IllegalStateException();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy