KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > htmlparser > tags > LinkTagTag


1 // $Header: /home/cvs/jakarta-jmeter/src/htmlparser/org/htmlparser/tags/LinkTagTag.java,v 1.1 2004/03/25 03:18:34 sebb 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;
34
35 import org.htmlparser.tags.data.TagData;
36
37 /**
38  * A Meta Tag
39  */

40 public class LinkTagTag extends Tag
41 {
42     private String JavaDoc linkTagRel;
43     private String JavaDoc linkTagType;
44     private String JavaDoc linkTagHref;
45     public LinkTagTag(
46         TagData tagData,
47         String JavaDoc linkTagRel,
48         String JavaDoc linkTagType,
49         String JavaDoc linkTagHref)
50     {
51         super(tagData);
52         this.linkTagRel = linkTagRel;
53         this.linkTagType = linkTagType;
54         this.linkTagHref = linkTagHref;
55     }
56     public String JavaDoc getTagRel()
57     {
58         return linkTagRel;
59     }
60     public String JavaDoc getLinkHref()
61     {
62         return linkTagHref;
63     }
64     public String JavaDoc getLinkTagRel()
65     {
66         return linkTagRel;
67     }
68     public void setTagRel(String JavaDoc linkTagRel)
69     {
70         this.linkTagRel = linkTagRel;
71     }
72     public void setLinkTagType(String JavaDoc linkTagType)
73     {
74         this.linkTagType = linkTagType;
75     }
76     public void setLinkTagRel(String JavaDoc linkTagRel)
77     {
78         this.linkTagRel = linkTagRel;
79     }
80     public String JavaDoc toString()
81     {
82         return "META TAG\n"
83             + "--------\n"
84             + "Http-Equiv : "
85             + getTagRel()
86             + "\n"
87             + "Name : "
88             + linkTagRel
89             + "\n"
90             + "Contents : "
91             + linkTagType
92             + "\n";
93     }
94 }
95
Popular Tags