david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
amywu | ecebb04 | 2007-04-10 20:07:35 +0000 | [diff] [blame] | 2 | * Copyright (c) 2001, 2005 IBM Corporation and others. |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
amywu | ecebb04 | 2007-04-10 20:07:35 +0000 | [diff] [blame] | 7 | * |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 8 | * Contributors: |
| 9 | * IBM Corporation - initial API and implementation |
| 10 | * Jens Lukowski/Innoopract - initial renaming/restructuring |
| 11 | * |
| 12 | *******************************************************************************/ |
nitind | d6e591d | 2005-03-14 22:21:57 +0000 | [diff] [blame] | 13 | package org.eclipse.wst.dtd.core.internal.util; |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 14 | |
| 15 | import org.eclipse.jface.util.Assert; |
| 16 | |
| 17 | public class LabelValuePair { |
| 18 | |
| 19 | public String fLabel; |
| 20 | public Object fValue; |
| 21 | |
| 22 | /** |
| 23 | * Creates a new name/value item |
| 24 | */ |
| 25 | public LabelValuePair(String label, Object value) { |
| 26 | Assert.isTrue(label != null); |
| 27 | fLabel = label; |
| 28 | fValue = value; |
| 29 | } |
| 30 | } |