blob: f00953bf81a0e3a8bd75abffef0777eb9a1828f3 [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.testing.tests.proxyindirection;
/*
* Phone implementation.
*
* An Implementation of the Contact interface.
*
* @author Rick Barkhouse
* @since 08/25/2000 16:36:20
*/
public class PhoneImpl implements Contact {
public int id;
public boolean isPublic;
public String number;
public String type;
public static String HOME = "Home";
public static String WORK = "Work";
public static String CELL = "Mobile";
@Override
public int getID() {
return this.id;
}
public String getNumber() {
return this.number;
}
public String getType() {
return this.type;
}
@Override
public boolean isPublic() {
return this.isPublic;
}
@Override
public void setID(int value) {
this.id = value;
}
@Override
public void setIsPublic(boolean value) {
this.isPublic = value;
}
public void setNumber(String value) {
this.number = value;
}
public void setType(String value) {
this.type = value;
}
public String toString() {
return "[Phone #" + getID() + "] " + getNumber() + " (" + getType() + ")";
}
}