org.efaps.json.data.AbstractValue Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2003 - 2014 The eFaps Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Revision: $Rev$
* Last Changed: $Date$
* Last Changed By: $Author$
*/
package org.efaps.json.data;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* TODO comment!
*
* @author The eFaps Team
* @version $Id$
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "type")
public abstract class AbstractValue
{
/**
* Key of this value.
*/
private String key;
/**
* Getter method for the instance variable {@link #key}.
*
* @return value of instance variable {@link #key}
*/
public String getKey()
{
return this.key;
}
/**
* Setter method for instance variable {@link #key}.
*
* @param _key value for instance variable {@link #key}
*/
public void setKey(final String _key)
{
this.key = _key;
}
/**
* Getter method for the instance variable {@link #value}.
*
* @return value of instance variable {@link #value}
*/
public abstract T getValue();
public abstract AbstractValue setValue(final T _value);
}