001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028:
029: package com.caucho.loader;
030:
031: /**
032: * Information about a particular package.
033: */
034: public class ClassPackage {
035: private String _prefix;
036:
037: private String _specName;
038: private String _specVersion;
039: private String _specVendor;
040:
041: private String _implName;
042: private String _implVersion;
043: private String _implVendor;
044:
045: public ClassPackage(String name) {
046: if (!name.equals("") && !name.endsWith("/"))
047: name = name + "/";
048:
049: _prefix = name;
050: }
051:
052: /**
053: * Returns the prefix for this package.
054: */
055: public String getPrefix() {
056: return _prefix;
057: }
058:
059: /**
060: * Returns the specification name.
061: */
062: public String getSpecificationTitle() {
063: return _specName;
064: }
065:
066: /**
067: * Sets the specification name.
068: */
069: public void setSpecificationTitle(String specName) {
070: _specName = specName;
071: }
072:
073: /**
074: * Returns the specification vendor.
075: */
076: public String getSpecificationVendor() {
077: return _specVendor;
078: }
079:
080: /**
081: * Sets the specification vendor.
082: */
083: public void setSpecificationVendor(String specVendor) {
084: _specVendor = specVendor;
085: }
086:
087: /**
088: * Returns the specification version.
089: */
090: public String getSpecificationVersion() {
091: return _specVersion;
092: }
093:
094: /**
095: * Sets the specification version.
096: */
097: public void setSpecificationVersion(String specVersion) {
098: _specVersion = specVersion;
099: }
100:
101: /**
102: * Returns the implementation name.
103: */
104: public String getImplementationTitle() {
105: return _implName;
106: }
107:
108: /**
109: * Sets the implementation name.
110: */
111: public void setImplementationTitle(String implName) {
112: _implName = implName;
113: }
114:
115: /**
116: * Returns the implementation vendor.
117: */
118: public String getImplementationVendor() {
119: return _implVendor;
120: }
121:
122: /**
123: * Sets the implementation vendor.
124: */
125: public void setImplementationVendor(String implVendor) {
126: _implVendor = implVendor;
127: }
128:
129: /**
130: * Returns the implementation version.
131: */
132: public String getImplementationVersion() {
133: return _implVersion;
134: }
135:
136: /**
137: * Sets the implementation version.
138: */
139: public void setImplementationVersion(String implVersion) {
140: _implVersion = implVersion;
141: }
142: }
|