KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > internal > resolver > PackageSpecificationImpl


1 /*******************************************************************************
2  * Copyright (c) 2003, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.internal.resolver;
12
13 import org.eclipse.osgi.service.resolver.PackageSpecification;
14
15 public class PackageSpecificationImpl extends VersionConstraintImpl implements PackageSpecification {
16     private boolean export;
17
18     public boolean isExported() {
19         return export;
20     }
21
22     public void setExport(boolean export) {
23         this.export = export;
24     }
25
26     public String JavaDoc toString() {
27         return super.toString() + " (" + (export ? "exp" : " imp") + ")"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
28
}
29 }
Popular Tags