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

com.sitewhere.microservice.lifecycle.parameters.LifecycleComponentParameter Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
/*
 * Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package com.sitewhere.microservice.lifecycle.parameters;

import com.sitewhere.spi.microservice.lifecycle.ILifecycleComponent;
import com.sitewhere.spi.microservice.lifecycle.ILifecycleComponentParameter;

/**
 * Parameter associated with a lifecycle component.
 *
 * @param 
 */
public class LifecycleComponentParameter implements ILifecycleComponentParameter {

    /** Component name */
    private String name;

    /** Component value */
    private T value;

    /** Required */
    private boolean required;

    /** Parent component */
    private ILifecycleComponent parent;

    /*
     * @see
     * com.sitewhere.spi.server.lifecycle.ILifecycleComponentParameter#getName()
     */
    @Override
    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    /*
     * @see
     * com.sitewhere.spi.server.lifecycle.ILifecycleComponentParameter#getValue()
     */
    @Override
    public T getValue() {
	return value;
    }

    public void setValue(T value) {
	this.value = value;
    }

    /*
     * @see
     * com.sitewhere.spi.server.lifecycle.ILifecycleComponentParameter#isRequired()
     */
    @Override
    public boolean isRequired() {
	return required;
    }

    public void setRequired(boolean required) {
	this.required = required;
    }

    /*
     * @see
     * com.sitewhere.spi.server.lifecycle.ILifecycleComponentParameter#getParent()
     */
    @Override
    public ILifecycleComponent getParent() {
	return parent;
    }

    public void setParent(ILifecycleComponent parent) {
	this.parent = parent;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy