Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/htmlparser/tags/data/LinkData.java


1   // $Header: /home/cvs/jakarta-jmeter/src/htmlparser/org/htmlparser/tags/data/LinkData.java,v 1.2 2004/02/10 13:41:08 woolfel Exp $
2   /*
3    * ====================================================================
4    * Copyright 2002-2004 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   * 
18   */
19  
20  // The developers of JMeter and Apache are greatful to the developers
21  // of HTMLParser for giving Apache Software Foundation a non-exclusive
22  // license. The performance benefits of HTMLParser are clear and the
23  // users of JMeter will benefit from the hard work the HTMLParser
24  // team. For detailed information about HTMLParser, the project is
25  // hosted on sourceforge at http://htmlparser.sourceforge.net/.
26  //
27  // HTMLParser was originally created by Somik Raha in 2000. Since then
28  // a healthy community of users has formed and helped refine the
29  // design so that it is able to tackle the difficult task of parsing
30  // dirty HTML. Derrick Oswald is the current lead developer and was kind
31  // enough to assist JMeter.
32  
33  package org.htmlparser.tags.data;
34  
35  public class LinkData
36  {
37      private String link;
38      private String linkText;
39      private String accessKey;
40      private boolean mailLink;
41      private boolean javascriptLink;
42  
43      public LinkData(
44          String link,
45          String linkText,
46          String accessKey,
47          boolean mailLink,
48          boolean javascriptLink)
49      {
50          this.link = link;
51          this.linkText = linkText;
52          this.accessKey = accessKey;
53          this.mailLink = mailLink;
54          this.javascriptLink = javascriptLink;
55      }
56  
57      public String getAccessKey()
58      {
59          return accessKey;
60      }
61  
62      public boolean isJavascriptLink()
63      {
64          return javascriptLink;
65      }
66  
67      public String getLink()
68      {
69          return link;
70      }
71  
72      public String getLinkText()
73      {
74          return linkText;
75      }
76  
77      public boolean isMailLink()
78      {
79          return mailLink;
80      }
81  
82      public String toString()
83      {
84          return "";
85      }
86  }