-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDogConnectionContent.java
57 lines (48 loc) · 1 KB
/
DogConnectionContent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// This is where I store contents of a connected URL
// (c) Jimmy Larsson 1998
//
public final class DogConnectionContent
{
protected String contentData;
protected String contentDataLowerCase;
protected String contentType;
protected String contentTitle;
protected int dogNo;
public DogConnectionContent ()
{
this(null, null, null, 0);
}
public DogConnectionContent (String data, String type, String title, int dogNo)
{
set (data, type, title, dogNo);
}
public void set (String data, String type, String title, int dogNo)
{
contentData = data;
if (data != null)
contentDataLowerCase = data.toLowerCase();
contentTitle = title;
this.dogNo = dogNo;
}
public String getData ()
{
return contentData;
}
public String getDataLowerCase ()
{
return contentDataLowerCase;
}
public String getType ()
{
return contentType;
}
public String getTitle ()
{
return contentTitle;
}
public int getDogNo ()
{
return dogNo;
}
}