001: /*****************************************************************************
002: * Java Plug-in Framework (JPF)
003: * Copyright (C) 2007 Dmitry Olshansky
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2.1 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: *****************************************************************************/package org.java.plugin.tools.mocks;
019:
020: import org.java.plugin.registry.ManifestInfo;
021: import org.java.plugin.registry.MatchingRule;
022: import org.java.plugin.registry.Version;
023:
024: /**
025: * @version $Id: MockManifestInfo.java,v 1.1 2007/02/06 16:25:16 ddimon Exp $
026: */
027: public class MockManifestInfo implements ManifestInfo {
028: private String id;
029: private MatchingRule matchingRule;
030: private String pluginId;
031: private Version pluginVersion;
032: private String vendor;
033: private Version version;
034:
035: /**
036: * @see org.java.plugin.registry.ManifestInfo#getId()
037: */
038: public String getId() {
039: return id;
040: }
041:
042: /**
043: * @param value the id to set
044: * @return this instance
045: */
046: public MockManifestInfo setId(final String value) {
047: id = value;
048: return this ;
049: }
050:
051: /**
052: * @see org.java.plugin.registry.ManifestInfo#getMatchingRule()
053: */
054: public MatchingRule getMatchingRule() {
055: return matchingRule;
056: }
057:
058: /**
059: * @param value the matching rule to set
060: * @return this instance
061: */
062: public MockManifestInfo setMatchingRule(final MatchingRule value) {
063: matchingRule = value;
064: return this ;
065: }
066:
067: /**
068: * @see org.java.plugin.registry.ManifestInfo#getPluginId()
069: */
070: public String getPluginId() {
071: return pluginId;
072: }
073:
074: /**
075: * @param value the plug-in id to set
076: * @return this instance
077: */
078: public MockManifestInfo setPluginId(final String value) {
079: pluginId = value;
080: return this ;
081: }
082:
083: /**
084: * @see org.java.plugin.registry.ManifestInfo#getPluginVersion()
085: */
086: public Version getPluginVersion() {
087: return pluginVersion;
088: }
089:
090: /**
091: * @param value the plug-in version to set
092: * @return this instance
093: */
094: public MockManifestInfo setPluginVersion(final Version value) {
095: pluginVersion = value;
096: return this ;
097: }
098:
099: /**
100: * @see org.java.plugin.registry.ManifestInfo#getVendor()
101: */
102: public String getVendor() {
103: return vendor;
104: }
105:
106: /**
107: * @param value the vendor to set
108: * @return this instance
109: */
110: public MockManifestInfo setVendor(final String value) {
111: vendor = value;
112: return this ;
113: }
114:
115: /**
116: * @see org.java.plugin.registry.ManifestInfo#getVersion()
117: */
118: public Version getVersion() {
119: return version;
120: }
121:
122: /**
123: * @param value the version to set
124: * @return this instance
125: */
126: public MockManifestInfo setVersion(final Version value) {
127: version = value;
128: return this;
129: }
130: }
|