KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > magnet > domain > Extend


1 package org.sapia.magnet.domain;
2
3 /**
4  *
5  *
6  * @author Jean-Cedric Desrochers
7  *
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html" target="sapia-license">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class Extend {
15
16   /////////////////////////////////////////////////////////////////////////////////////////
17
///////////////////////////////// INSTANCE ATTRIBUTES /////////////////////////////////
18
/////////////////////////////////////////////////////////////////////////////////////////
19

20   /** The magnet file of this extend. */
21   private String JavaDoc _theMagnetFile;
22
23   /** The path element of this extend. */
24   private Path _thePathElement;
25
26   /////////////////////////////////////////////////////////////////////////////////////////
27
//////////////////////////////////// CONSTRUCTORS /////////////////////////////////////
28
/////////////////////////////////////////////////////////////////////////////////////////
29

30   /**
31    * Creates a new Extend instance.
32    */

33   public Extend() {
34   }
35
36   /////////////////////////////////////////////////////////////////////////////////////////
37
////////////////////////////////// ACCESSOR METHODS ///////////////////////////////////
38
/////////////////////////////////////////////////////////////////////////////////////////
39

40   /**
41    * Returns the magnet file of this extend.
42    *
43    * @return The magnet file of this extend.
44    */

45   public String JavaDoc getMagnetFile() {
46     return _theMagnetFile;
47   }
48
49   /**
50    * Returns the path element of this extend.
51    *
52    * @return The path element of this extend.
53    */

54   public Path getPath() {
55     return _thePathElement;
56   }
57
58   /////////////////////////////////////////////////////////////////////////////////////////
59
/////////////////////////////////// MUTATOR METHODS ///////////////////////////////////
60
/////////////////////////////////////////////////////////////////////////////////////////
61

62   /**
63    * Changes the magnet file of this extend to the value passed in.
64    *
65    * @param aMagnetFile The new magnet file.
66    */

67   public void setMagnetFile(String JavaDoc aMagnetFile) {
68     _theMagnetFile = aMagnetFile;
69   }
70
71   /**
72    * Changes the path element of this extend to the one passed in.
73    *
74    * @param aPathElement The new path element.
75    */

76   public void setPath(Path aPathElement) {
77     _thePathElement = aPathElement;
78   }
79
80   /////////////////////////////////////////////////////////////////////////////////////////
81
////////////////////////////////// OVERRIDEN METHODS //////////////////////////////////
82
/////////////////////////////////////////////////////////////////////////////////////////
83

84   /**
85    * Returns a string representation of thi extend.
86    *
87    * @return A string representation of thi extend.
88    */

89   public String JavaDoc toString() {
90     StringBuffer JavaDoc aBuffer = new StringBuffer JavaDoc(super.toString());
91     aBuffer.append("[magnetFile=").append(_theMagnetFile).
92             append("[path=").append(_thePathElement).
93             append("]");
94
95     return aBuffer.toString();
96   }
97 }
98
Popular Tags