jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
csalter | a3a2daa | 2005-06-15 06:53:51 +0000 | [diff] [blame] | 2 | * Copyright (c) 2002 IBM Corporation and others. |
jeffliu | ec1c478 | 2006-05-24 14:16:24 +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 |
csalter | a3a2daa | 2005-06-15 06:53:51 +0000 | [diff] [blame] | 5 | * which accompanies this distribution, and is available at |
jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 6 | * http://www.eclipse.org/legal/epl-v10.html |
csalter | a3a2daa | 2005-06-15 06:53:51 +0000 | [diff] [blame] | 7 | * |
| 8 | * Contributors: |
jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 9 | * IBM Corporation - initial API and implementation |
| 10 | * Jens Lukowski/Innoopract - initial renaming/restructuring |
| 11 | * |
| 12 | *******************************************************************************/ |
csalter | a3a2daa | 2005-06-15 06:53:51 +0000 | [diff] [blame] | 13 | package org.eclipse.wst.xml.core.internal.catalog; |
| 14 | |
| 15 | import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalog; |
| 16 | import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogElement; |
| 17 | import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogEvent; |
| 18 | |
| 19 | |
| 20 | public class CatalogEvent implements ICatalogEvent |
| 21 | { |
| 22 | protected ICatalog catalog; |
| 23 | protected ICatalogElement catalogElement; |
| 24 | protected int eventType; |
| 25 | |
| 26 | public CatalogEvent(Catalog catalog, ICatalogElement element, int eventType) |
| 27 | { |
| 28 | this.catalog = catalog; |
| 29 | this.catalogElement = element; |
| 30 | this.eventType = eventType; |
| 31 | } |
| 32 | |
| 33 | public ICatalog getCatalog() |
| 34 | { |
| 35 | return catalog; |
| 36 | } |
| 37 | |
| 38 | public ICatalogElement getCatalogElement() |
| 39 | { |
| 40 | return catalogElement; |
| 41 | } |
| 42 | |
| 43 | public int getEventType() |
| 44 | { |
| 45 | return eventType; |
| 46 | } |
| 47 | } |