01: /*****************************************************************************
02: * Java Plug-in Framework (JPF)
03: * Copyright (C) 2007 Dmitry Olshansky
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *****************************************************************************/package org.java.plugin.registry;
19:
20: import java.net.URL;
21:
22: /**
23: * Manifest info holder interface.
24: *
25: * @see PluginRegistry#readManifestInfo(URL)
26: * @version $Id: ManifestInfo.java,v 1.2 2007/02/06 16:25:16 ddimon Exp $
27: */
28: public interface ManifestInfo {
29: /**
30: * @return plug-in or plug-in fragment identifier
31: */
32: String getId();
33:
34: /**
35: * @return plug-in or plug-in fragment version identifier
36: */
37: Version getVersion();
38:
39: /**
40: * @return plug-in or plug-in fragment vendor
41: */
42: String getVendor();
43:
44: /**
45: * @return plug-in identifier this, fragment contributes to or
46: * <code>null</code> if this info is for plug-in manifest
47: */
48: String getPluginId();
49:
50: /**
51: * @return plug-in version identifier, this fragment contributes to or
52: * <code>null</code> if this info is for plug-in manifest
53: */
54: Version getPluginVersion();
55:
56: /**
57: * @return plug-in version matching rule or <code>null</code> if this
58: * info is for plug-in manifest
59: */
60: MatchingRule getMatchingRule();
61: }
|