| /******************************************************************************* |
| * Copyright (c) 2007 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ******************************************************************************/ |
| |
| package org.eclipse.ui.examples.contributions.model; |
| |
| /** |
| * A simple model object that is mutable. |
| * |
| * @since 3.3 |
| */ |
| public class Person { |
| private String surname; |
| private String givenname; |
| |
| public Person(String sn, String gn) { |
| surname = sn; |
| givenname = gn; |
| } |
| |
| public String getSurname() { |
| return surname; |
| } |
| |
| public void setSurname(String surname) { |
| this.surname = surname; |
| } |
| |
| public String getGivenname() { |
| return givenname; |
| } |
| |
| public void setGivenname(String givenname) { |
| this.givenname = givenname; |
| } |
| |
| public String toString() { |
| return surname + ", " + givenname; //$NON-NLS-1$ |
| } |
| } |