001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.commons.lang; 020 021/** 022 * Name Value Pair 023 */ 024public final class NameValuePair { 025 026 private String name; 027 private String value; 028 029 /** 030 * @param name 031 * @param value 032 */ 033 public NameValuePair(String name, String value) { 034 this.name = name; 035 this.value = value; 036 } 037 038 /** 039 * @return Returns the name. 040 */ 041 public String getName() { 042 return name; 043 } 044 /** 045 * @param name The name to set. 046 */ 047 public void setName(String name) { 048 this.name = name; 049 } 050 /** 051 * @return Returns the value. 052 */ 053 public String getValue() { 054 return value; 055 } 056 /** 057 * @param value The value to set. 058 */ 059 public void setValue(String value) { 060 this.value = value; 061 } 062 063}