001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.9.1,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.doxia.document;
007
008/**
009 * Specifies the default behavior for hyperlinks in the document.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class DocumentHyperlinkBehaviour
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * 
024     *             The name of the default target frame.
025     *             <p>
026     *               Specifies the name of the default target frame
027     * in which to display
028     *               a document referenced by a hyperlink.
029     *             </p>
030     * 
031     *             <p>
032     *               This attribute can have one of the following
033     * values:
034     *             </p>
035     * 
036     *             <dl>
037     *               <dd>_self</dd>
038     *               <dt>
039     *                 The referenced document replaces the content
040     *                 of the current frame.
041     *               </dt>
042     * 
043     *               <dd>_blank</dd>
044     *               <dt>
045     *                 The referenced document is displayed in a
046     * new frame.
047     *               </dt>
048     * 
049     *               <dd>_parent</dd>
050     *               <dt>
051     *                 The referenced document is displayed in the
052     * parent frame
053     *                 of the current frame.
054     *               </dt>
055     * 
056     *               <dd>_top</dd>
057     *               <dt>
058     *                 The referenced document is displayed in the
059     * topmost frame,
060     *                 that is the frame that contains the current
061     * frame as a child
062     *                 or descendent but is not contained within
063     * another frame.
064     *               </dt>
065     * 
066     *               <dd>A frame name</dd>
067     *               <dt>
068     *                 The referenced document is displayed in the
069     * named frame.
070     *                 If the named frame does not exist, a new
071     * frame with that
072     *                 name is created.
073     *               </dt>
074     *             </dl>
075     *           
076     */
077    private String targetFrame = "_self";
078
079
080      //-----------/
081     //- Methods -/
082    //-----------/
083
084    /**
085     * Method equals.
086     * 
087     * @param other
088     * @return boolean
089     */
090    public boolean equals( Object other )
091    {
092        if ( this == other )
093        {
094            return true;
095        }
096
097        if ( !( other instanceof DocumentHyperlinkBehaviour ) )
098        {
099            return false;
100        }
101
102        DocumentHyperlinkBehaviour that = (DocumentHyperlinkBehaviour) other;
103        boolean result = true;
104
105        result = result && ( getTargetFrame() == null ? that.getTargetFrame() == null : getTargetFrame().equals( that.getTargetFrame() ) );
106
107        return result;
108    } //-- boolean equals( Object )
109
110    /**
111     * Get the name of the default target frame.
112     *             <p>
113     *               Specifies the name of the default target frame
114     * in which to display
115     *               a document referenced by a hyperlink.
116     *             </p>
117     * 
118     *             <p>
119     *               This attribute can have one of the following
120     * values:
121     *             </p>
122     * 
123     *             <dl>
124     *               <dd>_self</dd>
125     *               <dt>
126     *                 The referenced document replaces the content
127     *                 of the current frame.
128     *               </dt>
129     * 
130     *               <dd>_blank</dd>
131     *               <dt>
132     *                 The referenced document is displayed in a
133     * new frame.
134     *               </dt>
135     * 
136     *               <dd>_parent</dd>
137     *               <dt>
138     *                 The referenced document is displayed in the
139     * parent frame
140     *                 of the current frame.
141     *               </dt>
142     * 
143     *               <dd>_top</dd>
144     *               <dt>
145     *                 The referenced document is displayed in the
146     * topmost frame,
147     *                 that is the frame that contains the current
148     * frame as a child
149     *                 or descendent but is not contained within
150     * another frame.
151     *               </dt>
152     * 
153     *               <dd>A frame name</dd>
154     *               <dt>
155     *                 The referenced document is displayed in the
156     * named frame.
157     *                 If the named frame does not exist, a new
158     * frame with that
159     *                 name is created.
160     *               </dt>
161     *             </dl>
162     * 
163     * @return String
164     */
165    public String getTargetFrame()
166    {
167        return this.targetFrame;
168    } //-- String getTargetFrame()
169
170    /**
171     * Method hashCode.
172     * 
173     * @return int
174     */
175    public int hashCode()
176    {
177        int result = 17;
178
179        result = 37 * result + ( targetFrame != null ? targetFrame.hashCode() : 0 );
180
181        return result;
182    } //-- int hashCode()
183
184    /**
185     * Set the name of the default target frame.
186     *             <p>
187     *               Specifies the name of the default target frame
188     * in which to display
189     *               a document referenced by a hyperlink.
190     *             </p>
191     * 
192     *             <p>
193     *               This attribute can have one of the following
194     * values:
195     *             </p>
196     * 
197     *             <dl>
198     *               <dd>_self</dd>
199     *               <dt>
200     *                 The referenced document replaces the content
201     *                 of the current frame.
202     *               </dt>
203     * 
204     *               <dd>_blank</dd>
205     *               <dt>
206     *                 The referenced document is displayed in a
207     * new frame.
208     *               </dt>
209     * 
210     *               <dd>_parent</dd>
211     *               <dt>
212     *                 The referenced document is displayed in the
213     * parent frame
214     *                 of the current frame.
215     *               </dt>
216     * 
217     *               <dd>_top</dd>
218     *               <dt>
219     *                 The referenced document is displayed in the
220     * topmost frame,
221     *                 that is the frame that contains the current
222     * frame as a child
223     *                 or descendent but is not contained within
224     * another frame.
225     *               </dt>
226     * 
227     *               <dd>A frame name</dd>
228     *               <dt>
229     *                 The referenced document is displayed in the
230     * named frame.
231     *                 If the named frame does not exist, a new
232     * frame with that
233     *                 name is created.
234     *               </dt>
235     *             </dl>
236     * 
237     * @param targetFrame
238     */
239    public void setTargetFrame( String targetFrame )
240    {
241        this.targetFrame = targetFrame;
242    } //-- void setTargetFrame( String )
243
244    /**
245     * Method toString.
246     * 
247     * @return String
248     */
249    public java.lang.String toString()
250    {
251        StringBuilder buf = new StringBuilder( 128 );
252
253        buf.append( "targetFrame = '" );
254        buf.append( getTargetFrame() );
255        buf.append( "'" );
256
257        return buf.toString();
258    } //-- java.lang.String toString()
259
260}