001 /*
002 =================== DO NOT EDIT THIS FILE ====================
003 Generated by Modello 1.4.1 on 2013-02-24 03:31:05,
004 any modifications will be overwritten.
005 ==============================================================
006 */
007
008 package org.apache.maven.profiles;
009
010 /**
011 *
012 * Repository contains the information needed
013 * for establishing connections with remote repoistory
014 * .
015 *
016 * @version $Revision$ $Date$
017 */
018 @SuppressWarnings( "all" )
019 public class RepositoryBase
020 implements java.io.Serializable
021 {
022
023 //--------------------------/
024 //- Class/Member Variables -/
025 //--------------------------/
026
027 /**
028 *
029 * A unique identifier for a repository.
030 *
031 */
032 private String id;
033
034 /**
035 *
036 * Human readable name of the repository
037 * .
038 */
039 private String name;
040
041 /**
042 *
043 * The url of the repository
044 * .
045 */
046 private String url;
047
048 /**
049 * The type of layout this repository uses for locating and
050 * storing artifacts - can be "legacy" or
051 * "default".
052 */
053 private String layout = "default";
054
055
056 //-----------/
057 //- Methods -/
058 //-----------/
059
060 /**
061 * Get a unique identifier for a repository.
062 *
063 * @return String
064 */
065 public String getId()
066 {
067 return this.id;
068 } //-- String getId()
069
070 /**
071 * Get the type of layout this repository uses for locating and
072 * storing artifacts - can be "legacy" or
073 * "default".
074 *
075 * @return String
076 */
077 public String getLayout()
078 {
079 return this.layout;
080 } //-- String getLayout()
081
082 /**
083 * Get human readable name of the repository.
084 *
085 * @return String
086 */
087 public String getName()
088 {
089 return this.name;
090 } //-- String getName()
091
092 /**
093 * Get the url of the repository.
094 *
095 * @return String
096 */
097 public String getUrl()
098 {
099 return this.url;
100 } //-- String getUrl()
101
102 /**
103 * Set a unique identifier for a repository.
104 *
105 * @param id
106 */
107 public void setId( String id )
108 {
109 this.id = id;
110 } //-- void setId( String )
111
112 /**
113 * Set the type of layout this repository uses for locating and
114 * storing artifacts - can be "legacy" or
115 * "default".
116 *
117 * @param layout
118 */
119 public void setLayout( String layout )
120 {
121 this.layout = layout;
122 } //-- void setLayout( String )
123
124 /**
125 * Set human readable name of the repository.
126 *
127 * @param name
128 */
129 public void setName( String name )
130 {
131 this.name = name;
132 } //-- void setName( String )
133
134 /**
135 * Set the url of the repository.
136 *
137 * @param url
138 */
139 public void setUrl( String url )
140 {
141 this.url = url;
142 } //-- void setUrl( String )
143
144
145 public boolean equals( Object obj )
146 {
147 RepositoryBase other = (RepositoryBase) obj;
148
149 boolean retValue = false;
150
151 if ( id != null )
152 {
153 retValue = id.equals( other.id );
154 }
155
156 return retValue;
157 }
158
159 }