/*
 * $Id: Compiler.java 1918 2007-11-29 14:02:17Z dreil $
 * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
 *
 * http://izpack.org/
 * http://izpack.codehaus.org/
 *
 * Copyright 2007 Dennis Reil, 2010 René Krell
 *
 *
 * 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.
 */

package com.izforge.izpack.api.data;

import com.izforge.izpack.api.regex.RegularExpressionFilter;
import com.izforge.izpack.api.substitutor.VariableSubstitutor;

/**
 * @author Dennis Reil, <Dennis.Reil@reddot.de>
 * @version $Id: $
 */
public interface DynamicVariable
{
    /**
     * @return the name
     */
    public String getName();

    /**
     * @param name the name to set
     */
    public void setName(String name);

    /**
     * @return the value
     */
    public Value getValue();

    /**
     * @param value the value to set
     */
    public void setValue(Value value);

    /**
     * @return the conditionid
     */
    public String getConditionid();

    /**
     * @param conditionid the conditionid to set
     */
    public void setConditionid(String conditionid);

    public void validate() throws Exception;

    public String evaluate(VariableSubstitutor... substitutors) throws Exception;

    public void setCheckonce(boolean checkonce);

    public void setIgnoreFailure(boolean ignore);

    /**
     * @return the non-mandatory regular expression
     */
    public RegularExpressionFilter getRegularExpression();

    /**
     * @param expression the non-mandatory regular expression
     */
    public void setRegularExpression(RegularExpressionFilter expression);

    @Override
    public boolean equals(Object obj);

    @Override
    public int hashCode();
}


@@ -954,16 +954,46 @@
 tutor;%0A%0A
+import java.io.Serializable;%0A%0A
 /**%0A * @
@@ -1091,16 +1091,37 @@
 Variable
+ extends Serializable
 %0A%7B%0A    /

Make dynamicVariable serializable