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

org.ow2.petals.se.xslt.model.XslParameterBean Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
/**
 * Copyright (c) 2010-2012 EBM WebSourcing, 2012-2016 Linagora
 * 
 * This program/library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or (at your
 * option) any later version.
 * 
 * This program/library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program/library; If not, see http://www.gnu.org/licenses/
 * for the GNU Lesser General Public License version 2.1.
 */
package org.ow2.petals.se.xslt.model;

/**
 * A bean that defines a XSL parameter for the XSLT SE.
 * @author Vincent Zurczak - EBM WebSourcing
 */
public class XslParameterBean {

    /**
     * The parameter's name.
     */
    private String name;

    /**
     * The parameter's value.
     */
    private Object value;

    /**
     * True if this parameter can be overridden by a message property.
     */
    private boolean overridable;

    /**
     * Constructor.
     *
     * @param name
     *            the parameter's name
     * @param value
     *            the parameter's value
     * @param overridable
     *            defines whether the parameter value can be overriden at
     *            runtime
     */
    public XslParameterBean(String name, Object value, boolean overridable) {
        this.name = name;
        this.value = value;
        this.overridable = overridable;
    }

    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the value
     */
    public Object getValue() {
        return this.value;
    }

    /**
     * @param value
     *            the value to set
     */
    public void setValue(Object value) {
        this.value = value;
    }

    /**
     * @return the overridable
     */
    public boolean isOverridable() {
        return this.overridable;
    }

    /**
     * @param overridable
     *            the overridable to set
     */
    public void setOverridable(boolean overridable) {
        this.overridable = overridable;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy