001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.expression;
016    
017    /**
018     * @author Miguel Angelo Caldas Gallindo
019     */
020    public class Variable {
021    
022            public Variable(String name) {
023                    _name = name;
024            }
025    
026            public String getExpressionString() {
027                    return _expressionString;
028            }
029    
030            public String getName() {
031                    return _name;
032            }
033    
034            public Object getValue() {
035                    return _value;
036            }
037    
038            public Class<?> getVariableClass() {
039                    return _variableClass;
040            }
041    
042            public void setExpressionString(String expressionString) {
043                    _expressionString = expressionString;
044            }
045    
046            public void setName(String name) {
047                    _name = name;
048            }
049    
050            public void setValue(Object value) {
051                    _value = value;
052            }
053    
054            public void setVariableClass(Class<?> variableClass) {
055                    _variableClass = variableClass;
056            }
057    
058            private String _expressionString;
059            private String _name;
060            private Object _value;
061            private Class<?> _variableClass;
062    
063    }