1 /* 2 * $Id: Coord.java 421491 2006-07-13 03:47:01Z wsmoak $ 3 * 4 * Copyright 1999-2004 The Apache Software Foundation. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package org.apache.struts.webapp.el.exercise; 20 21 /*** 22 * Simple bean to use for testing indexed tags. 23 */ 24 public class Coord implements java.io.Serializable { 25 private int x; 26 private int y; 27 28 public Coord() { 29 } 30 31 public Coord(int x, int y) { 32 this.x = x; 33 this.y = y; 34 } 35 36 public int getX() { 37 return (x); 38 } 39 40 public int getY() { 41 return (y); 42 } 43 44 public void setX(int x) { 45 this.x = x; 46 } 47 48 public void setY(int y) { 49 this.y = y; 50 } 51 52 public String toString() { 53 return ("Coord[" + "x=" + x + ";y=" + y + "]"); 54 } 55 }