com.fluidbpm.program.api.vo.field.NameValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-api Show documentation
Show all versions of fluid-api Show documentation
Used for the
* Custom Program Step,
* Custom Actions,
* Scheduled Actions and
* Fluid API
in the Fluid BPM and Content Management system.
/*
* Koekiebox CONFIDENTIAL
*
* [2012] - [2018] Koekiebox (Pty) Ltd
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property
* of Koekiebox and its suppliers, if any. The intellectual and
* technical concepts contained herein are proprietary to Koekiebox
* and its suppliers and may be covered by South African and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material is strictly
* forbidden unless prior written permission is obtained from Koekiebox Innovations.
*/
package com.fluidbpm.program.api.vo.field;
import java.io.Serializable;
/**
* General 'name and value' object.
*
* @author jasonbruwer on 1/16/18.
* @since 1.8
* @version 1.8
*/
public class NameValue implements Serializable {
private String name;
private Object value;
/**
* Default constructor.
*/
public NameValue() {
this(null,null);
}
/**
* Constructor to init name and value.
*
* @param nameParam The key name.
* @param valueParam The key value.
*/
public NameValue(String nameParam, Object valueParam) {
this.name = nameParam;
this.value = valueParam;
}
/**
* Get the name.
*
* @return Name
*/
public String getName() {
return this.name;
}
/**
* Set the name.
*
* @param nameParam The name to set.
*/
public void setName(String nameParam) {
this.name = nameParam;
}
/**
* Get the value.
*
* @return Value as an {@code Object}
*/
public Object getValue() {
return this.value;
}
/**
* Set the value.
*
* @param valueParam The value to set to.
*/
public void setValue(Object valueParam) {
this.value = valueParam;
}
/**
* If the value is {@code null}, {@code null} will be returned.
* Otherwise {@code this.value.toString()} is called.
*
* @return {@code String} value of {@code this.value}.
*/
public String toString() {
if (this.value == null) {
return null;
}
return this.value.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy